I have the same phone as OP - Pixel XL from 2017 w/ 128 GB. It's slower but still very functional. No need to upgrade yet, I'm going to see if it last at least another year.
Yea the battery is giving out. Auto shutsdown like at 30%. Glad yours is still holding up. I ended up getting a cheaper Moto, since I don't need the best camera. Happy so far with the choice. The transfer for my contacts and limited apps was very automatic. I like stock androids, less bloatware.
Yeah, I am charging my phone endlessly but I have chargers everywhere so it's not a big deal. You can't go wrong w/ Vanilla Android.