People are right to worry about the phone's battery. If you want to keep it that long, get a 500mA charger and slow charge it every night and avoid deep discharge.
With how awful my P6 is ageing I wouldn't count on it...
Me not trusting pixel phones toast more than 2-4 years is the reason I still won't buy another one. If I see people actually still use the p8 by 2030 I might buy one again.
Get a thick 2 piece rubber/plastic case. Make sure the edge of the case sticks out significantly from the screen, so when you drop it, it will hit the case before the phone. (Provided you don't drop it on gravel or something pointy)
My pixel 3a has survived years of this. And I haven't needed to replace it yet. Sure the plastic is scuffed to hell and back, and it ads significant thickness. but it's yet to fail in protecting my phone. And I've never bought a screen protector for it.
My first-gen Pixel still works just fine. The battery is shit and doesn't stay on for more than an hour or so, but replacing the battery is a trivial matter. But while the battery has juice, it runs just as smoothly as it always has. Same experience with my Pixel 3, and likely to be the same experience with my Pixel 6. The Pixel line seem to withstand aging quite well, in my experience.
My tablet works and works well, but practically every site and game related app will crash. I can use discord, reddit/lemmy but thats about all my tablet can handle. It seems to handle YouTube fine, but i don't use it on mobile because of the 50million ads.
My tablet isn't 10 years old, yet. Again it still works its just...most things don't work with it.
As a point of comparison, we just got rid of an iPhone X that was in use in the family for 6 years. It had battery replaced once, but admittedly due, if we kept it. We got rid of because Apple dropped support, plus there was a lot of physical damage from a teen carrying it, and repeatedly removing the case.
However discounting the physical damage, it worked reasonably well. If there were fewer drops, it would still have been a useful phone
If it exceeds your expectation right now, then it should last 8 years with a battery replacement when the battery health goes bad.
Because in my experience pixels never get worse than they were on day 1 over the years (except for the battery health).
If it's below your expectation, you are going to want to sell it in 1 or 2 years looking for that thing you are lacking at the moment.
I had a Moto G4 plus until two years ago. It lasted me 6 years, stuck at Android 8. It worked slow but it was functional. Replaced battery only once. If you take care of your device it can last even longer. I would probably still have the phone if it wasn't that it was becoming too slow and a hassle to do even simple tasks
Since those earbuds are not repair friendly (I love you, buds+) the battery will be the first to go in about 1-2 years depending on use and with minimal care (cleaning and whatnot). The phone software wise very likely maybe even more so depending on third party support. Hardware wise depending on use and care the battery, the screen and maybe the usb c port will need replacement with time. Get a good case, save up like 200-300$ as an emergency fund and about 150$ for a future battery and you should be golden and have fun with the time you have with the earbuds.
Edit: I say the screen since thats the most fragile part of the phone and people tend to drop stuff hence the 200-300$ emergency fund. The usb c port probably might not need replacing (my og pixel xl's still works) but I'm not sure how op will abuse it, again emergence fund. The battery fund is basically a guarantee though since lithium batteries dont last