Obviously there are nuances here. If the groups are actually job qualifications (hiring a singer based on vocal range, for example), then none of this applies. There are surely plenty of gray areas, too. Gender doesn’t fit cleanly into a pair of groups. Sometimes it might be very hard to measure actual aptitude, and proxies of various quality are needed. College admissions are an example of the latter — you can’t measure how well someone can do, so admissions departments use proxies of varying quality and social acceptability.
As for gender differences, if I’m hiring someone, I believe that it doesn’t matter whether one gender is likely to be more qualified for any reason — if I’m hiring, I have an obligation to consider the applicant as an individual regardless of gender.