> Your employer insinuating it's not your skill and intellect, but your melatonin and gonads that gets you to space.
Why would you assume it's not both?
When the apollo program was all-white no one was going around saying "I bet those guys aren't any good and just got the job because they lack melanin" — yet other races were excluded from the astronaut program all the same.