To switch from one iPhone to another, you should back up everything to your iCloud account and then restore it on the new iPhone.
Cloning a hard drive on a Mac is a different process. If you have a newer MacBook or iMac, you can't swap out the hard disk on it. The Apple Silicon-based Macs have the storage soldered in, so there's ...