The problem is the manufacturers, Samsung is usually still among the better ones, i.e. there are many updates. But: the phone is already very old, I wouldn't recommend it, because with an old phone, despite the goodwill of the manufacturers, updates simply end sooner. It came onto the market in September 2020
I would recommend the Xiaomi 11 Lite 5G, Xiaomi also offers a 3-year operating system and 4-year security updates warranty from Xiaomi for the phone. The Xiaomi 11 Lite 5G NE was launched in the third quarter of 2021, had Android 11 then and is now getting Android 12, then Android 13 and 14. It offers more in many areas, double the memory, 64Mpx camera and 256GB storage. It also has dual 5G support and the RAM can be expanded from 8 to 11 GB.
Xiaomi 11 Lite 5G NE (256 GB, White, White, 6.55 ", Hybrid Dual SIM, 64 Mpx, 5G)