as a pixel owner, i'm unfortunately paying for the operating system more than anything else. most other android phones are infested with unremovable bloatware and lack of update guarantees, and iOS is crippled by apple. I used maemo when I could, and now that I can't pixels are pretty much my only option for a decent phone.
I have an Xperia as a secondary phone and test device which comes with relatively clean Android. Sony is wavering on the NA market unfortunately so I may not be able to replace it with another Sony when the time comes.
Even the low cost Xiaomi and OnePlus models get you a few years (6 for the former, IIRC 4 for the latter) of Android support.
As for bloatware, any mobile OS comes with stuff included. I've used both a Xiaomi and a OnePlus device and neither felt too bad, bloat wise.
Exactly the reason I own a pixel.
Pixels get first class support by google in terms of software which means I can rock my phone for several generations before upgrading.
I've owned a 2, 6, and now 9. Even though the 9 is much faster than the 2 or 6, I've reached a point where that performance difference simply doesn't matter. I'm not being held back by the CPU in any real way. That leaves security, software, and battery life as the main reasons why I might decide to update my phone.