Replacing an AC compressor costs an average of $1,200 in 2025 —often cheaper than installing a new HVAC. Here's when it's worth it.