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 > ...
Google Contacts lets you transfer contacts between Android smartphones by syncing them with your Google account. Alternatively, you can share contacts using VCF files. This article covers these ...