This depends on the age of the unit, the extent of the repairs needed, and the efficiency of the current system. If your AC is near the end of its expected lifespan and repairs are costly, replacement might be a more cost-effective option.