Castor oil vs laxative

So from what I've heard castor oil has a laxative affect which is what puts people into labor. So would just a normal laxative do the exact same thing? I'm not planning on trying either of them. I just randomly thought of it and figured I'd ask 😂

Update: I know it can cause baby to poop in utero. That wasn't my question. My question was would just a normal laxative have the same affect as castor oil?