Legality aside, this is a terrible and naive way to think of DEI. Candidates recruited this way will have a stigma attached to them (“they were recruited because they were X”). A better way is to enforce DSA - Diverse Slate Approach - which ensure that you don’t recruit anybody without having considered multiple genders and/or ethnicity before making the offer. The goal of DSA is to recruit the best candidate for the…
DEI crowd in silicon valley has no diversity of thought. It is a monoculture.
Also, depending on industry or company objectives, sometimes you don't want diversity of thought at all. You want coworkers that are aligned on a particular niche objective and have similar opinions especially if the company is trying to do something unconventional. Diversity hurts there and having people with various backgrounds is a disadvantage.