If you hire the best, you don't get diversity. In tech companies, you get a company full of men, often white or Asian men because those are the people who put in the work and acquire the skills necessary to do good work because they are deeply interested in the subject matter.
Optimising for diversity is at odds with having a company that performs well. It makes you hire people who are not a fit for their position, but they are hired to satisfy some kind of ultimate balance between the sexes and races. A true meritocracy is blind to race and sex, all it cares about is if someone is good at their job, and if that's 80% males then be it so, and if that's 80% females then be it so!
Optimising for diversity is at odds with having a company that performs well. It makes you hire people who are not a fit for their position, but they are hired to satisfy some kind of ultimate balance between the sexes and races. A true meritocracy is blind to race and sex, all it cares about is if someone is good at their job, and if that's 80% males then be it so, and if that's 80% females then be it so!