Pretty much this. If you buy decent stuff and take care of it, then there’s now less of an expiration date than ever before in my experience.
Computers 20+ years ago were really old after 5 years, but nowadays you can put an SSD into a PC from 10 years ago and it will be more than good enough for most people’s usage. And if it doesn’t have enough memory for the current windows 10 bloat, then Linux is an option, but imo it’s better to just add extra ram so that the user can just stay with a familiar os.
Likewise tablets and smartphones, buy decent specs, don’t use cheap chargers and don’t drop them too often and they just seem too last. And if they do slow down, then a factory reset is easy+fast and can bring them to life again. In my family an almost 10y old Shield K1 still works smoothly for daily online media consumption. A cheap Samsung and Microsoft surface from the same era are now giving a horrible experience though, but those 2 were always shit in comparison to the shield.