I have devices with Android 4.4 still working smoothly. All these apple anecdotes that think Android just blows up after a few years is a shitty cope at best. There are also probably more old Android phones surviving in the wild considering how affordable they are and usually more repairable.
And guess what? without the OEM updates and playstore not having compatible apps usable anymore, there's still troves of opensource apps and development going on that make it still viable as an alternative usage like media consumption, storage, security camera, and more.
Unlike Apple, where you're just bound to a single store and no sideloading.
Android OEMs do suck at supporting their devices, is bloated but that doesn't mean they all commit mass suicide after few years as sheeples think.