I would suggest checking the health of the iMac's internal hard drive by using DriveDx (free trial period). Any DriveDx "Warnings" or "Failing" notices indicate the hard drive is worn out or failing respectively. Feel free to post the complete text report here using the "Additional Text" icon which looks like a piece of paper on the forum editing toolbar.
If you decide to donate, then at least you can be up front that at the very least the hard drive is good or bad.
It is fine to donate hardware to those who are able to deal with any hardware issues that may exist, but do not donate to anyone who is not knowledgeable on being able to deal with old hardware and possible repairs. It just puts a burden any "charities" since they would then be responsible for proper disposal of the electronics which usually involves fees. I had to examine donated items for schools & churches and nearly 100% of those items were beyond being economically viable to repair. I really felt bad for those institutions being burdened with storing & disposing of those items.
A possible choice for donating old items would be vocational tech schools which may want or need older devices to teach how to repair hardware. Or maybe there is a local repair shop that may be interested in refurbishing old equipment or using it for parts.
With a 2014 iMac, you may be able to keep using the iMac by installing macOS onto an external USB3 SSD with UASP support as long as the internal hard drive does not have a severe failure which could interfere with system performance even when booted to external media.
Another option if macOS 11.x Big Sur is too old would be to install Linux Mint on the iMac.