Sex, discrimination, and the division of labor