The correct answer is if doing so would pose a logistical hardship that involves an unreasonable financial burden.
An employer may hire someone of a given gender, as long as they are in compliance with the concept of business necessity. An employer must prove that the practice is job related and consistent with business necessity.