It looks like Samsung is cooking up a new eSIM transfer tool to make porting your number from an iPhone a little less annoying.
Revive your unresponsive iPhone by forcing it to restart. Additionally, you can try charging the phone or reinstalling iOS.
To switch from one iPhone to another, you should back up everything to your iCloud account and then restore it on the new iPhone.