Programs, especially the larger ones, always strive to get a good mix of Residents, and that *can* include gender and/or other factors.
Personally, I've never really seen or perceived sexism as one of the determining factors in Resident selection. Programs, however, do disciminate. They take only what they percive to be the best in the applicant pool. 😀