Android phones from the last 4-5 years are still completely usable after multiple years. I have a OnePlus 5 (from 2017) that I keep as a backup device which is perfectly usable even if the battery life is now quite weak. And unlike iPhones even after OS updates stop you can continue to install, use and update any apps without restrictions or minimum OS requirements on Android.
Android phones from the last 4-5 years are still completely usable after multiple years. I have a OnePlus 5 (from 2017) that I keep as a backup device which is perfectly usable even if the battery life is now quite weak. And unlike iPhones even after OS updates stop you can continue to install, use and update any apps without restrictions or minimum OS requirements on Android.