I use an iPhone X (released 2017) and I wish it kept up with modern app performance requirements. The iPhone X doesn't support built-in OCR in images and apps take 1-2s longer to launch than my iPhone 13.
Faster performance today means longer lasting tomorrow.
I still use an iPhone X (with new battery from last year). The Pixel 2 was released around the same time and is e-waste.
Almost all apps run well with the exception of Google's, which have consistently gotten worse. The camera still starts up quickly, and the fact that most apps are still performant compared to an iPhone 13 is impressive.
Google Docs is unusable - even small documents can't be opened, and the app hangs when opened more than half the time. Google Maps keeps adding misc features which adds significantly to startup time and responsiveness.
Where apple does do well is supporting devices for much longer with software and security updates. So running older android phones is prob not a good ideas from a security perspective.