They fail for a reason, and replacing one without addressing that reason is how a second compressor gets destroyed.
The usual causes are low refrigerant, which means low oil circulation; a blocked condenser that drives discharge pressure up; or debris from a failed compressor spread through the circuit. Any of those requires flushing the lines and replacing the receiver-drier or accumulator, the expansion device and often the condenser.
Listings state whether the compressor is supplied with a clutch, with oil, and with a seal kit. A compressor supplied without oil has to be filled with the correct type and quantity for the system, and R-134a and R-1234yf systems use different oils.
Variable-displacement compressors behave differently from fixed ones and are not interchangeable with them even when the mounting pattern matches.