Nothing in Division 1 or 2 renders it unlawful for a person to discriminate against a man on the ground of his sex by reason only of the fact that the first - mentioned person grants to a woman rights or privileges in connection with pregnancy, childbirth or breastfeeding.