Bigger pot less plants, smaller pots more plants, choose which you want and run it. The real thing that will effect yield is balanced nutrition (feed) and a quality light. I average around 1 gram per watt of dry trimmed flower (not counting trim/larf/stems) with LED lights. Doesn't matter if I grow 6 5 gal plants or 1 20 gallon plant.
I feel like a lot of guys saying they get 3 grams per watt are weighing the total biomass (entire plant dry).