Becoming vaccinated against COVID-19 offers more protection against the virus than past infection, according to data released Friday by the Centers for Disease Control and Prevention.