The argument for affirmative action goes that any special treatment only counters the biases and limitations you don't face and they do.
The argument against affirmative action is that it is very hard to remove preferential treatment once it is in place even if it no longer required. The other argument is that such affirmative action does not efficiently target the truly deserving or the underlying cause.
Dependent probability is never factored in, while it is true the number of women who get into STEM or programing is low, the biases in companies is considerably less once they are in. Over extending benefits in the workplace is not perhapa as important as getting education fixed in schools and colleges.
There are no easy answers