There’s no 1 size fits all answer.
Depending on the strain, the growing method, and the grow medium you might make different choices.
Are you going to veg for more than 8 weeks and top 3 times or more?
Is the strain a 7 week flower period or a 12 week or longer?
That said, other than the unnecessary cost for a larger container you should be fine with anything 10 gallons or larger for a single plant 4x4 grow