Let's assume that all gender-unequal job distributions are due to discrimination (which is highly unlikely, btw), then by definition forcing equal outcomes (e.g. a 50% women quota) will harm the previously dominant group by reducing their share of the distribution.
The discussion shouldn't be if equality might harm some groups (it definitely does), but instead which level of harm we're willing to accept for the greater good (of more equality).