Obligations are extinguished:
(1) By payment or performance;
(2) By the loss of the thing due;
(3) By the condonation or remission of the debt;
(4) By the confusion or merger of the rights of creditor and debtor;
(5) By compensation;
(6) By novation.
Other causes of extinguishment of obligations, such as annulment, rescission, fulfillment of a resolutory condition, and prescription, are governed elsewhere in this Code. (1156a)