missed miscarriage

Recently went to the ob on Tuesday, baby measured well 9 weeks. However they confirmed there was no heartbeat.

Scared to take the pill and have lots of pain and cramping to flush baby out.

Any thoughts on taking the pill??