If women are on average physically smaller than men, it would also - on average - be cheaper to launch women astronauts, and more efficient to keep them fed and watered!
(Sorry Greg Davies, if you'd fancied going to Mars.)
Also, many women working in STEM are already pretty used to working in difficult conditions and prevailing against impossible odds....