Nitpick: Pixel has 3 years of security updates, and 2 years of Android OS updates.
Re:iOS 10 Security White Paper [pdf]
by AsyncAwait on Sunday March 26, 2017 @08:41AM
(#13960463)
I think you get something like 3 years, not as good as iOS, but by the 4th year, you only get a very crippled version of the newest iOS anyways.
iPhones are typically supported for 4 years.