Males being genetic is very much false.

Keeping with Darwin, it is all survival.......a female plant will produce - 10 to 20 thousand seeds. Once the daylight starts to wane the plants realizes it must reproduce. That one female will produce mucho seeds, but it has to get pollinated...consequently, when the conditions are poor, there are more males to pollinate that one female.
That's it, the whole secret,
the better the conditions, the
more females. That is how they make feminized seeds, they stress a female into becoming a male, then cross it with a female or its own clone.