iPhone 6s (released September 2015) - ~ 8 years and going
Nexus 5X & Nexus 6P (released September 2015) - last update January 2019 [1] ~ 2.25 years
Pixel & Pixel XL (released October 2016) - 2019 (can't find a good reference) ~ 3 years
Pixel 2 (released October 2017) - December 2020 [2] ~ 3.3 years
> Not as long as an iPhone, but more like 3-5 years.
Pixels starting from 6 -> 5 years.
Recent Samsungs -> 4 years.
Fairphone 2 (Dec 2015) -> lost support last month.
Things have improved since Nexus 5X, and even that one had a year longer support than your "max 2 years". I'm not saying it's better than an iPhone, I'm saying make a fair comparison.
Nexus 5X & Nexus 6P (released September 2015) - last update January 2019 [1] ~ 2.25 years Pixel & Pixel XL (released October 2016) - 2019 (can't find a good reference) ~ 3 years Pixel 2 (released October 2017) - December 2020 [2] ~ 3.3 years
[1]: https://9to5google.com/2018/11/07/nexus-6p-and-5x-final-guar... [2]: https://www.androidpolice.com/2020/10/05/pixel-2-and-2-xl-re...
My conclusion: an iPhone outlives (at least) 2+/3+ android phones