Pregnancy and maternity discrimination are one of those corners of employment law where the letter of the law and the lived reality diverge sharply.