If they’re not worth the hassle, then it’s probably best to donate them.
Depending on where you’re based, you could try weeecharity for example. They use old laptops to train unemployed people and people with disabilities to repair and refurbish them.
Another company doing something similar is Restart.