I had to replace my previous phone because my banking app dropped support for that Android version, and was going to stop working. The hardware was fine.
(I always buy phones in the cheapest tier, so that happens sooner)
(I always buy phones in the cheapest tier, so that happens sooner)
Samsung also makes the A-series Galaxies which are a pretty solid mid-tier phones that are supported for years, too.