Unlike an IRA, a 401k will automatically transfer to a surviving spouse no matter who the designated beneficiary is.