To transfer contacts from iPhone to iPhone, using iCloud is the easiest method. Ensure both iPhones are signed in with the same Apple ID/Apple Account. On both phones, open Settings > tap your name > ...
The newer eSIM technology, which is quickly becoming the standard on high-end phones, is safer and more convenient.