Consider a firm which operates at equilibrium (where peak profit is achieved), with a ratio of 80% male, 20% female. Artificially capping the number of males allowed in the corporation, or artificially increasing the number of females pushes the corporation out of equilibrium thus reducing profits in the long term.
On the flip side of the coin, if the firm discriminates (equilibrium 50% male, 50% female but it chooses 80/20) - the economy punishes the firm by reducing its potential profits.
Companies should be hiring on skill, and culture fit. Not to fill a quota or someone's agenda.
It's true that there is a gap within genders in tech - but the answer isn't reducing another equally skilled person's chances of getting the job - this is bad for everyone (except the person who got the job). Instead, we need to look at the root cause and try to learn why the gap is so obvious. Fix the issue at the source, rather than using affirmative action as a bandaid. Maybe it even turns out not to be an issue. Who knows.