unwanted pregnancy

Im a lil confused. If abortion is haram in all stages than what abt a miscarriage?

I have heard many desis use the term miscarriage/abortion interchangeably…
this is my understanding of it…when some women find out that the baby is not growing properly, they opt for a D&c, which is the same physical procedure as an abortion, rather than wait for it to pass naturally…

if someone has a better understanding of it please correctme thanks