Phones suffer a lot from forced obsolescence. More often than not, the hardware is fine, but the OEM abandons it because "lol fuck you, buy new shit". Anyone that says that a Samsung S7 "can't handle current apps" is out of their mind
Other than camera and software, there's hardly any reason to buy new phones over flagships from some years ago.