I jumped from Samsung to Apple a couple of years back and despite the hardware advantages for the latest Samsungs, I wouldn't go back - everything 'just works' in the Apple world, Apple takes security and privacy seriously, and transitioning from one handset model to another is seamless. Comes down to personal preference I guess.
Here is a good review (Samsung comes out on top)
https://www.tomsguide.com/us/galaxy-s10e-vs-iphone-xr,review-6275.html
But there are so many 'abilities' missing in iphones, stuff you take for granted in Windows and Android...
- Ability to use SD cards or external NAND.
- Ability to attach peripherals such as mice, gamepads and others through USB OTG
- No pointer support. Want to quickly edit a presentation by projecting your screen wirelessly on any smart TV and attaching a mouse? Nope, cannot do. Use your fingers instead....
- Cannot copy and paste media files (Music, High def videos etc) onto your phone from your PC or another device. Need the infuriating piece of shit-ware that is itunes to do any media management between devices.
- Does not interface seamlessly with Windows like Android does. 90% of PC users use Windows.
- Transferring files using bluetooth? ... Cannot do.
- Using NFC for a multitude of payment apps? Nyet, only apple pay for iphones.
- Install an app unavailable on apple store? No sideloading apps. That means no emulators and other cool free streaming apps. I can play PSP games on my S9, using an emulator and an external controller. I can even play on TV with wireless mirroring!
These are all i can remember off the top of my head.... I am sure there are more..
Having said that, if you are a basic user, (few social media/connectivity apps, casual games, browsing and calls, ios will work smoothly and excellently for you. Quality of apps on the store are good and they rarely encounter bugs.