Fact of the matter is: there's a small portion of women represented in computer science than the average. Anyone whom tries to "guess" why, either based upon fact or unproven postulate, is blackballed and/or fired.
As per "diversity hire" or many other mealy-mouth ways of saying it, comes back to political correctness and affirmative action.
Affirmative action means, for a decision right now, to use attributes you cannot change (sex, skin color, race, age, height) as an equal or primary stat in deciding policy - whether to give you money, whether to hire you, whether to rent to you. It also is an (sex/rac/age)-ism. That's because of X events in the past, and collective guilt or something tries to overcompensate.
The insulting part of this, is that if you, well, aren't a white male, then you might have been hired because of unchangeable attributes, and not because of your skill. Doubly so if you work in a position that entails "diversity" in its title. In those cases, the job was created for your attributes, and not intelligence.
The other half, is that you're not allowed to talk about it. Full stop. End of story. Do not mention the elephant. There is no elephant. Anyone who mentions the unmentionable is summarily disposed.
Tl;Dr. We need a hiring test equivalent to a Turing test. No race, no sex, no body-type, no nothing other than "Can you type the language we're using, and can you answer questions pertaining to the job at hand?"