In America companies, women who struggle to find software engineering roles due to discrimination are often able to get lower-paid roles in QA where they are less likely to be pre-judged for not looking like what people think engineers look like. The result is that 38.8% of American QA testers are women, compared to 14% of software engineers.
I wonder how much that has to do with the hiring managers also being women. (For the places where that’s the case.)
Fields that hold fixed-mindset beliefs, where success in the field is attributed to innate talent, "being smart" or other unchanging characteristics, have significantly more discrimination against women and traditionally-marginalized racial groups than do fields that believe success relies on hard work and practice: https://www.science.org/doi/abs/10.1126/science.1261375