Is considering gender and race as a factor during hiring process illegal, and thus those "dei okrs" to hire more women too?..
People invested in identity politics are, by their own admission, interested in outcomes. In this world view, the legal system is a tool for achieving the desired outcomes. The same set of rules can be illegal if it rejects certain identities in a context, and at the same time legal if it promotes those identities in a different context. 'Heads I win, tails you lose', but dead serious.
A thread discussing the pervasive 'women and minorities encouraged' mindset is in western academia:
https://academia.stackexchange.com/questions/95011/is-it-con...