Well, that is something I won't be doing. I've only recently moved from Android because I was fed up with phones only offering one or two major versions of Android. At least with iPhones, you know Apple will update iOS for five years or similar.
How long will the Samsung Galaxy S22 series receive software updates?
The upcoming Samsung Galaxy S22 series smartphones have fans excited for the many upgrades over the previous generation models, including the inclusion of Android 12. But it doesn't ...

"The Samsung Galaxy S22 series smartphones will receive Android software updates for up to four years, which means up to the Android 16/One UI 8. The promise means that the phones will receive enhanced support from Samsung, and any necessary software upgrades, through the next four Android OS versions"
The longest I have ever had a phone is maybe 3 years. I did keep an iPad 2 around long after it lost updates. My current 12.9 inch 1st gen iPad Pro will probably lose update support after 16. I will keep using until the consumption apps stop working (Netflix, Disney, Kindle...etc).