Is it actually a sealed motor-compressor assembly with everything inside the can? Older units often had the capacitor mounted externally with separate terminals on the compressor for the start & run windings. Replacing the capacitor wouldn't be a problem if it's faulty, but as Trumpy has said, if the internal windings are at fault it's a big job.

Quote
If you do toss it out in the street, be sure to remove the doors from the hinges. You don't want little kids playing around and getting locked inside and suffocating in there. It _has_ happened

This was a subject of another of those public safety films we had in Britain in the 1970s. Smash the lock on an old fridge before putting it out.