Gain or loss attributable to the cancellation, lapse, expiration, or other termination of—
((1)) a right or obligation (other than a securities futures contract, as defined in section 1234B) with respect to property which is (or on acquisition would be) a capital asset in the hands of the taxpayer, or
((2)) a section 1256 contract (as defined in section 1256) not described in paragraph (1) which is a capital asset in the hands of the taxpayer,