yebbut, in industrial hygiene/industrial medicine it may be a reasonable argument, and it would be up to the employer to prove otherwise.
There's a viscose rayon plant I used to work at (now razed to the ground), where only men were allowed to work in certain sections because some of the chemicals had mutagenic/teratogenic effects, so exclusion of all women meant no chance of having pregnant women working there. None of the men working there had sons, only daughters. Is that causation or correlation? If correlation it's a very low probability.