I have switched back and forth between iOS and Android devices several times on AT&T Wireless. In my experience, you can switch between iOS and Android with one caveat. You need to call AT&T's Technical Support group and have them update your device setting in their system.
The reason for this, as I understand it, is that they use different "codes" in their network to identify the services that a line has.
You need to make sure that you speak with Technical Support and not some run of the mill customer service rep. The CS rep will just run through a script they have to get your device working and it will not work because they don't have access to update the codes. If you get customer service, be polite but firm that you want to speak with technical support.
Technical support will have you up and running in about ten minutes.
If you decide to switch back to your iPhone X, you will need to call technical support again and have them switch the codes back to iOS.
Swapping from one iOS device to another iOS device or from one Android device to another Android device does not encounter this problem. It only happens when you swap between iOS and Android.
Also note that WiFi calling and VoLTE will not work on your unlocked Samsung device. AT&T has not certified unlocked Samsung devices to use these services on its network.
As best that I've been able to learn about this, the reason for has something to do with the E-911 service. WiFi calling and VoLTE use the same technology for sending voice data through the Internet.
Unfortunately, I cannot explain any more than this because I just don't know.