Check for electrical and mechanical faults within the system before writing off the compressor. Can be something really cheap like a malfunctioning sensor, a bad relay or worn out clutch.
If you can freely spin the compressor clutch by hand then it's likely not completely dead.