Most the time it’s not going to be legal though.
Yeah, neither you nor I are lawyers in the field, so I'll take that as your personal speculation.
It’s going to be an uphill battle to claim in court that someone experiencing more discrimination should actually be a requirement of a job like the one described above or impact the hiring decision in any way.
So, here's what you are missing. I'm not talking about "requirements". I'm talking about statistical likelihood.
The person who has personally felt these aspects of our society is more likely to have fully educated themselves (like, maybe having a college degree in diversity studies), and engaged with their communities and employers about fixing things. The better candidates are going to be in the not-straight-white-guy demographics, simply because straight white guys don't have life experience that drives their decisions to the relevant field.