Right now, you only get 3 years of software updates. Even if you buy the 1800$ Pixel Fold. But that can change with the upcoming Pixel 8 and 8 Pro. According to a source, it’s possible that Pixel 8 and 8 Pro will get 7 years of both software and security updates.
Apple has always been kings of updating older iPhones. But soon they can get some competition. According to the source, Google will update the Pixel 8 and 8 Pro to Android 21. That would be a huge improvement over the current update limit that Google has on the Pixel lineup and it would also beat Samsung and OnePlus that have 4 years of software support.
But we will see. You should take this with a pinch of salt.