And to think that virtually all the other OEMs barely even support their phones beyond a year and a half. Even Google is only supporting its own phones for 3 years, which is still less than the average lifespan of these phones (iPhones may be higher quality, but I doubt the avg lifespan for other flagship devices is much smaller).
I've argued before that there should probably be a law that says an electronic device has to be supported until at least 80% of the units stop being in use.
So,for instance, if 10 million people purchased a Pixel 2, Google should deliver software updates until fewer than 2 million Pixel 2 units are under active use. According to this report, that may very well be 5 or 6 years. Remember phones tend to continue to be used even after the original buyer stops using it, whether it's because they sold it or handed it to someone else.