the status as husband and wife of two individuals having taxable years beginning on the same day shall be determined—
(A) if both have the same taxable year—as of the close of such year; or
(B) if one dies before the close of the taxable year of the other—as of the time of such death;