I have a OnePlus 6T acquired in 2019 that is absolutely fine to this day. I only replaced it because they dropped support for new OS updates.
I installed DivestOS on it and use it as a backup phone (i.e.: I take it with me to the gym, and keep my main phone at home). If they had kept support, I wouldn't even have replaced it.