Until You Fix the Airflow Problem, Replacing Your AC Unit Solves Nothing
https://www.designspiration.com/ccyrus1795elpzv/
Yes, you can replace just the AC compressor, but doing so without addressing the underlying airflow problems that stressed it to failure exposes your system to rapid component breakdown, escalated repair costs, and eventual total system failure