I've been with Android since my the very first G1. I'm not an iPhone hater, I think they are great phones, I'm just happy with Android (for now) and see little reason to switch yet. That being said, the one thing that could probably make me switch is this issue right here.
I have the Pixel 5a, it was released in August 2021 and Google only guarantees support for that model up to August 2024, that is for both full OS updates and just security patches. As of the Pixel 6 series and after, you get 3 years of full OS updates, and 5 years of security patches (that's 2 extra years after full OS updates stop).
To compare, the iPhone 13 series was released in September 2021 and will continue to get support up to 7 years after its release (Sept 2028).
So far my Pixel 5a has been the best (reliability-wise) phone I've ever hard and it sucks to know that after August 2024, I'll be vulnerable to future security vulnerabilities.
Samsung offer only slightly better support by increasing the full OS support to 4 years instead of Google's 3 for the Pixel. Same 5 year for security patch. That's not enough for me to go back to Samsung and deal with their OS bloated with apps I can't uninstall (it's been a while, maybe it's better?)
sources:
https://support.google.com/nexus/answer/4457705?hl=en
https://www.androidpolice.com/samsung-four-year-update-list-...
https://support.apple.com/en-gb/HT201624