The comparison between vaccinated and previously infected arguably suffers from some amount of survivorship bias - those with immune systems least able to fend off the virus don’t survive it. There’s no such selection with vaccines.