Hire only the best people, because being the best isn't correlated with gender? And actively recruit from balanced pools (paying attention to gender balance), which is very different from making hiring decisions based on gender? This is pretty straightforward if you're in fact committed to hiring only the best people.