I've done a couple of those.
Always used a drift punch or sacrificial screwdriver to drive the cup out. Socket to push cup back in. Never bothered with heat.
Seems to work too.
Maybe heat would help on those where cup doesn't overhang central cavity.
On one of those, once welded a nut across the hole to be able to knock the damaged cup out.
Don't take for granted that cups are identical in size. Measure well, or risk splitting hub on install.
Unless like me, youre stubborn & equipped enough to grind cups to correct OD.