It would take something truly revolutionary to move me away from the Pixel. I had the original Pixel and after that went through a couple different non-Pixel phones and the whole time I hated the experience. Google's extra features that you get with Pixels have become essential to me.
I've had the Pixel 5 for almost 3 years now, I just replaced the battery in it and I plan on keeping this phone for at least another couple years. It has everything I need on the hardware front, and is still getting new features and updates.
Edit: a word