The aptitude for all tasks is not evenly spread through the genders
The obvious issues are;
Ensuring developing that aptitude is not biased against the 'wrong' gender.
Ensuring that ability rather than gender is used in the selection of candidate.
Someone having to pretend to be what they are not is ridiculous, however it would make a lot of sense for the early stages of a selection not to include anything that allows prejudices to get in the way of this.
Already CVs are dropping date of birth, perhaps the names and other irrelevant information should be withheld on the initial selection round.
This would at least reduce the problems of good candidates being ignored due to gender and unsuitable candidates getting preferential selection.