Immunity acquired from a Covid infection is as protective as vaccination against severe illness and death, study finds