Discretion Within the Constraints of Opportunity: Gender Homophily