You don't solve the upstream problems by doing the exact same wrong that made the problem to begin with. If the institutions that preceded yours bred inequality and bias then yes, you get a biased candidate pool, whether you are the NBA or Google. But the solution is never to get an input of biased applicants and select not the best candidate but the one that meets a racial quota to try to make yourself feel better about racism in the world.
In both cases I imagine there are capable young non-black men who don't pursue basketball because its a "black sport" and there are technically minded young black women who don't pursue software because its a "nerdy white man industry". Regardless of if the NBA is actually biased, or if tech companies are actually sexist, what matters is the average normative cultural perception of that industry or discipline. If you are told your whole life by opinionated outsiders that only white men can program of course you are going to have a hard time finding the willpower to fight that presumption as a young uninformed anything.
In both cases I imagine there are capable young non-black men who don't pursue basketball because its a "black sport" and there are technically minded young black women who don't pursue software because its a "nerdy white man industry". Regardless of if the NBA is actually biased, or if tech companies are actually sexist, what matters is the average normative cultural perception of that industry or discipline. If you are told your whole life by opinionated outsiders that only white men can program of course you are going to have a hard time finding the willpower to fight that presumption as a young uninformed anything.