I just switched from my pixel 2 to a hand-me-down iPhone 11 Pro for exactly this reason. Initially I installed LineageOS on my Pixel 2 but then you can't relock the bootloader, leaving the device completely exposed in the case of a physical attack.
I was skeptical of the iOS transition but it was pretty easy and I will probably never go back.
As much as I dislike the Apple walled garden, everything I actually care about has a native iOS application. I can use one of the cheap Android tablets I have lying around for anything else.
My Pixel 2 screen (5" diagonal) is actually a bit small for me and a slight step down from the Nexus 5X I had previously. Given that, I'd probably go for an iPhone model has a slightly larger screen.