The competition isn't much better. There are hundreds of these massive leaps of logic used to justify the use of race and gender in hiring. Basically every reason for why the demographics of tech is the way it is this oversight.
At the core of diversity hiring (which corporations have spent billions of dollars on), the benefits of racial and gender diversity in a workforce have never been proven.