I have an iPad Pro 10.5 inch model that I believe was made in 2017. That being said it is running the latest version of iPadOS 16 beta without any issues, which that alone says a lot…. 2017 production makes it a 5 year old almost 6 year old tablet, and still has awesome battery life, close to 8 full hours of use. I have an iPhone XR that I got it 2018 which makes it a 4 almost 5 year old phone, it’s running the latest version of iOS, iOS 16 and has all day battery life still, take it off the charger around 4:30 am and at 12 midnight still has 25% to 30% remaining, which is absolutely awesome.
I have had android phones namely the Samsung galaxy s4, the last android phone I ever had and likely the last android phone I will ever have, I have serious issues with a phone getting red hot in my pocket and that Samsung was replaced under warranty 3 times, and when it was just out of warranty it did it again, that is when I got my first iphone 5s that was used, and it never had any issues until it got dropped and needed a screen replacement and that is when I replaced it with the iPhone XR. I have had android tablets, from very cheap models to the samsung galaxy a8, and had constant issues with them with quality and performance along with finding apps that actually work and act right. Needless to say I will stick with apple for the phones and tablets and likely the laptop as well, windows is a whole other issue.