Indebtedness satisfied by corporate stock or partnership interest
For purposes of determining income of a debtor from discharge of indebtedness, if—
(A)#
a debtor corporation transfers stock, or
(B)#
a debtor partnership transfers a capital or profits interest in such partnership,
to a creditor in satisfaction of its recourse or nonrecourse indebtedness, such corporation or partnership shall be treated as having satisfied the indebtedness with an amount of money equal to the fair market value of the stock or interest. In the case of any partnership, any discharge of indebtedness income recognized under this paragraph shall be included in the distributive shares of taxpayers which were the partners in the partnership immediately before such discharge.