So racism/sexism is okay as long as it doesn't hurt operational readiness? Or do you not consider this racism/sexism, if so how are hiring decisions based on race/sex not racist/sexist?
Can you name "actual racist/sexist hiring practices"? I'm not american, but my understanding is that lack of women in tech comes from that fact that more women are interested in people that things. 80%+ women go to nursing schools, 80%+ men go into engineering. If you make society more egalitarian you maximise those differences between sexes, hence 10-15% of women engineers in Norway and 30% in Bangladesh.
no idea if that is caused by biology or social framework (the way you were raised, a lot of software jobs are in contracting, so no maternity leave etc.)
Furthermore your behavior is indicative that you would sacrifice your own team to look progressive. Sometimes the rules of PR are harsh, but it is your job to shield employees from that and treat them fairly.