For what it's worth, replacement batteries can often be had for $20-30, maybe a bit more with tools included. For example:
https://www.ifixit.com/products/google-pixel-2-battery-genui...Of course it's a bit more involved for a device that wasn't intended to have a user-replaceable battery, but it's almost always possible.
Alternatively, even with a dead battery, you can probably plug it into the wall to boot it up and wipe all your data, and then sell it for maybe $30 to $40 on eBay. There's lots of folks out there who will buy phones cheap and either refurbish them themselves, or else just use them tethered for software development, IoT projects, etc.