Surely you must be joking.
The employee:HR relationship is fundamentally adversarial over here. HR's job is to protect the company, including from its own employees. They will throw you under the bus if it benefits the company.
Most people won't run into issues with them, but if you think that someone important to the company's bottom line is behaving inappropriately and you go to HR about it, how would you expect them to react? It's a matter of incentives.
Well of course they are. And just like irredeemable relationships, you need to move on and improve your judgement to avoid a repeat. Bemoaning on Slack achieves nothing.
This is an HR responsibility. You either trust them to avoid and eliminate discrimination or you don't.
Of course now that we all live in Covidland, we've had horror stories of whole business units just getting a pre-recorded message that they no longer work there.