Being laid off after maternity leave.

So my job is doing layoffs soon (my accounting manager/friend told me). My name came up as one of the ppl to be laid off but they were going back and forth on it because I'm pregnant of course. They can't lay me off because they could end up with a law suit on their hands. However, I dread coming back after six weeks and leaving my child. I would gladly take being laid off. What should I do? Is it crazy that I want them to pick me?