I got my Pixel 4A (5G) back when it released Sep 2020 and don't intend to replace it soon.
Before that I had an Xperia XA2 which I had for several years. It still functions fine, I even booted it up recently to let my son use it to watch stuff on during an upcoming 15 hours of flying/direction. The problem I was having though is because the Xperia was a German one that I picked up from Media Markt when I lived there, and when I moved back to the US and got T-Mobile, the bands didn't line up very well and I had awful signal in most places. Dealt with it for a bit over a year, and when the Pixel 4A (5G) came out, it was enough reason for me to get a new phone, both to get on the appropriate bands, and to get 5G, so ordered via Best Buy.