In the case of a surviving spouse or surviving divorced parent who marries—
(A) an individual entitled to benefits under this subsection or subsection (a), (b), (c), (e), (f), or (h), or under section 423(a) of this title , or
(B) an individual who has attained the age of eighteen and is entitled to benefits under subsection (d),
the entitlement of such surviving spouse or surviving divorced parent to benefits under this subsection shall, notwithstanding the provisions of paragraph (1) of this subsection but subject to subsection (s), not be terminated by reason of such marriage.