yield is correlated to size of the canopy, not necessarily number of plants. If you fill the tent, you'll get your yield. More plants generally means less vege time, which will also save money. There's obviously a ceiling to that benefit (common sense).
Genetics will dictate whether the potential is a super yield or an average one. It takes clones to consistently hit higher marks. From seed you whould have lower expectations, by comparison, and expect it to be more volatile harvest-to-harvest.
5-gallon pots are quite large. These'll be good for 6-8 weeks of vege plus the typical flower length range and can likley push even longer without too much problem. This size pot is fine for a plant that will be 4sq ft to 6sq ft each, just guessing. Six of these plants would probably take up more than a 5x5. You can probably use 3-galllon pots with a 6-9 plant setup.
Fwiw, i use 5-gallons. I do ~6 week vege or a bit less. Canopy per plant is about 2x2 (4sq ft). I under-fill a bit, because i don't need the full 5-galllons. I fill a little larger than 4x8 area with 8 plants. I choose this because it gives me enough vege time to take some clones. If i didn't need 30-40 plants to do a SOG i'd definitely do that and probably save 3 weeks of vege time.
The other thing is i'd suggest a number that fits the shape of your tent. it'll be easier to train a square canopy rather than an oblong canopy. Symmetrical growth is generally easier. It's not impossible to do other things, either. Tetris that shit up, if you feel like it.
Whatever you do.. you can always check if you have too much or too little medium. You'll have lots of 'empty' medium with few roots in areas of root zone or overpacked roots, or a happy well-colonized medium. You can easily adjust from there.
i would defnitely use a trellis for anything but sog (small plants have no need)... just the risk of running into "1" floppy plant is worth it. Tying up indidivual branches and such to support it is a pain in the ass 2x over.. .once when you do it, then when you harvest. Scrog helps visualize filling the space and recognizing when to flip to flower too.
So, to review relative to this limited topic of filling a tent... canopy size (assuming all other factors are good) = yield. Number of plants = vege time required to grow that 'canopy size'
I'd also suggest not going wall-to-wall.. leave 4-6" away from the wall for light to encompass plant and airflow.