You'd need to prove it though. The official position of Google is probably "it is a performance / restructuring thing and pregnancy is purely accidental coincidence". (Wink-wink). Of course the winks only happen in person they are not written down.
So now someone who has a baby on the way has to pay for a lawyer and fight an uphill and expensive case.