As a white male who works in STEM I can tell you that there is a substantial number of lazy, feckless, work shy jobsworth people who wouldn’t lift a finger to save their grandmother from the Ravenous Bugblatter Beast of Trall.
If you didn’t get the job and you believe you were a victim of discrimination, then you probably fit in the category above. I’m not saying it never happens, but my experience is that the best candidate gets the job, and I’ve never come across any instance of selection on criteria other than ability to successfully navigate the interview and CV process.