Sony Xperia XZ
4 Year old phone. Still working perfectly thanks to Android Open Source Project (AOSP)
I managed to port the latest version of Android 10 into the device.
Sony officially discontinued support and update for this device. That's mean you will be stuck on Android 8 (Oreo) there will be risk of lacking apps support and security update.