Any change in the beneficiary of a first-time homebuyer account shall not be treated as a distribution for purposes of subparagraph (A). (F) Disallowance of excluded amounts as deduction, credit, or exclusion No deduction, credit, or exclusion shall be allowed to the taxpayer under any other section for any qualified principal residence purchase expenditures to the extent taken into account in determining the amount of the exclusion under this paragraph. (2) Estate and gift tax with respect to the account Rules similar to the rules of paragraphs (2), (4), and (5) of section 529(c) shall apply for purposes of this section. (3) Tax treatment after death of account holder (A) Jointly held accounts In the case of a first-time homebuyer account which was jointly held by spouses, if the surviving spouse acquires the deceased spouse’s interest in a first-time homebuyer account by reason of being the designated beneficiary of such account at the death, such account shall be treated as if the spouse were the sole account holder. (B) Other cases (i) In general If, by reason of the death of the account holder, any person acquires the account holder’s interest in an first-time homebuyer account in a case to which subparagraph (A) does not apply— (I) such account shall cease to be a first-time homebuyer account as of the date of death, and (II) an amount equal to the fair market value of the assets in such account on such date shall be includible if such person is not the estate of such holder, in such person’s gross income for the taxable year which includes such date, or if such person is the estate of such holder, in such holder’s gross income for the last taxable year of such holder. (ii) Deduction for estate taxes An appropriate deduction shall be allowed under section 691(c) to any person (other than the decedent or the decedent’s spouse) with respect to amounts included in gross income under clause (i). (e) Other definitions and special rules For purposes of this section— (1) First-time homebuyer (A) In general The