Experience with the pill

My OB recommends the pill to terminate my pregnancy. It is not viable and my body isn’t passing it naturally. My mom is pushing me to get a D&C; but my OB doesn’t recommend them unless they’re absolutely necessary. Does anyone have experience with the pill or do you just recommend getting a D&C;? This was my first pregnancy and I’m completely devastated right now and can’t think clearly. I don’t know what to do.