Pixel 8 have 7 years os and security updates. My Partner kept her Motorola going 8 years. She had to replace after her employer would not support her remote access to the systems because her phone os was not supported by the security / remote login system. Plus it finally started to play up and hint at upcoming doom. I doubt her replacement Samsung or any modern phone will last longer than 7 years without having issues.
As to only a phone. Well it's only a bike but we all seem to prattle on about them. What's the difference really, a bike is just two wheels, a frame and pedals. Why the need to discuss features like we do? A tool is a tool. Tools have details about them that differentiates them that affects their suitability for someone. People will talk about these differences to find their best option for any tool whether bikes or phones or chainsaws. No difference in this just what is being talked about.