Sexism (not sure about racism) really is a problem in academia in a way it just isn't in the corporate world.
There are influential old professors in science departments all across the world that genuinely believe women can't do science. They refuse to change, refuse to step down, and the universities don't do anything about it because the administrators just exist in lala land.
It gets worse than that. I know at UniMelb (the more "woke" major University in the most "woke" city in Australia), they refuse to do anything about a particular Chemistry professor who is so egregiously sexually predatory that even the men know about him; a genuine Weinstein character.
His most famous act was hosting a fake department party at his holiday house. He created invites that implied it was a big event, but only sent it to one young female student he had his eyes on. God knows what would have happened if she actually turned up alone...
I guess the point is that University administrators really can create the worst of both worlds - on one hand pushing a "diversity" narrative that demonises (powerless) young white men, while at the same time covering up for (powerful) genuine bigots and sexual predators.
Just for what it's worth, the department actually put out a report praising the predatory Chemistry professor mentioned above - he was promoting diversity by only taking on female students!