I guess only time will tell. Google also had Nexus from 2010 to 2016. Who’s to say the Pixel line won’t see a similar demise (and as a tangential point, probably an abandonment of support) in the next few years?
With the Chromebook obsolescence fallout and the decision to extend software and security support for those recently, one would assume that the Pixel may be subject to similar thinking within Google. But the sales volumes of Pixel phones are a lot lower than Chromebooks. Google doesn’t seem to generally handle hardware quite well.