Every iPhone I’ve had has succumbed to either the home button failing (which requires a completely new main board to fix) or the lithium battery swelling to the point the case bursts open. My current model has no home button and has lasted the longest, and is a few months away from its third battery - I have no intention of replacing it until Apple brings back Touch ID or eliminates the notch.
My wife has had the same Samsung phone for almost fifteen years, but it fails consistently every year and she has it replaced under warranty (how many of those things did they make that there is a two decade supply of replacements?) She gets a fresh unit with a fresh battery every year and runs it until it fails, then she spends about four hours on the phone with clueless support techs from Samsung and Tmobile, they point fingers at each other for a while, then finally agree to replace the unit. Usually it is the screen that fails but once she lost a bunch of irreplaceable photos when the encryption key corrupted, leaving her with nothing but a memory card full of encrypted blobs. Otherwise she has become really good at migrating to new phones when they arrive.