is a surviving spouse of a veteran and—
(A) is considered in need of regular aid and attendance or permanently housebound under title 38; or
(B) is entitled to compensation for a service-connected death or pension benefits for a non-service-connected death under title 38, and has a disability considered permanent under section 221(i) of the Social Security Act ( 42 U.S.C. 421(i) );