As above, it’s such a potential minefield that may employers will be reluctant to get rid of a pregnant employee as it can be high risk, unless the circumstances mean it isn’t, by which I mean (both real scenarios):
1) Employee is cr*p and well on the way to being sacked for being cr*p, goes off on maternity, redundancy situation arises in that area, HR advise to not even think about selecting her for redundancy due to high risk of discrimination allegation and tribunal situation, far more able colleague loses job instead.
2) Office is being closed and everyone is being redundant, person on maternity is made redundant along with the rest.
It was the same person in (1) and (2) btw.