The compressor is the part that decides this
A capacitor or a fan motor is a straightforward swap, worth fixing almost every time. The compressor is different. It's the most expensive part in the system, and when it's failing, usually a hard start or a groan before it kicks on, replacing just that part can cost close to a new unit. When the compressor is the problem, that's the number worth questioning, not the rest of the system.






