(A) the widow or widower of such individual had been previously married to such individual and subsequently divorced and such requirement would have been satisfied at the time of such divorce if such previous marriage had been terminated by the death of such individual at such time instead of by divorce; or
(B) the stepchild of such individual had been the stepchild of such individual during a previous marriage of such stepchild’s parent to such individual which ended in divorce and such requirement would have been satisfied at the time of such divorce if such previous marriage had been terminated by the death of such individual at such time instead of by divorce;