For my phone a battery replacement from the manufacturer is right at 10% the price of what's probably the equivalent new phone. (Not that I'm having battery issues yet for my ~2yr old phone.)
To me that's well within the range of being worth it vs. a new phone.
I don't have a Pixel, though, so maybe it's different.