The procedures are often the same. A D&C is a D&C, whether it’s used to deliberately abort a viable fetus or to clean out an unviable fetus. It literally means to Dilate the cervix (so the doctor can see inside and get their instruments in there) & Curratage (use a tool to scrape tissue out of the uterus).
Or popping a pill to expel a fetus, viable or otherwise. Mifeprestone then Misoprostol vs Methotrexate then Misoprostol. In both cases, the first drug stops development, and the second drug expels the fetus.
In all of these cases, you’re aborting the fetus. The context changes, the act is the same.