It is true that genetics are genetics. But it is not true that the sex of every other living thing is determined by those genetics. Take the clown fish for example. The dominant fish in a group will always be female, either by birth or by changing sex. If that dominant fish dies, the next in line (a male) will become female and take over. This is the classic example of environment determining gender.Genetics are genetics, and only those hardwired, unchangeable DNA strings determine sex, just like in every other living thing on this planet.
As far as the gender of cannabis being influenced by environmental factors, I believe it. Especially since my current grow is showing 7 of 8 males. This is only the second time in many years I've ended up with a majority of males. Coincidentally, this time and the one other time were the only times I did not use used aquarium water during veg. I'm convinced that using high-nitrogen aquarium water is responsible for my always getting a large majority of females. Sadly, I no longer have an aquarium.