Gender or Sex discrimination involves treating someone (an applicant or employee) unfavorably because of that person’s sex (Male / Female). Generally, it is illegal to fire /not hire someone because they are a male or female.
Sex discrimination also can involve treating someone less favorably because of his or her connection with an organization or group that is generally associated with people of a certain sex.