If we take whirlpool as an example, you are effectively doing both at the same time. You select a number of UTXO inputs to coinjoin,selectt pool size which represents the size of each UTXO output. In general you want to batch into material amounts to minimize coinjoin and miner fees.