I'm curious, how much to replace the battery? I bought my kid a used 2015 MacBook Air like 5 years ago and it needs a new battery, otherwise it's totally fine.
You need to make sure you look at the model and the emc number and check that they match the battery you're buying. (Same for SSD upgrades).