Only the vaccinated will preferentially evolve variants that are resistant to the vaccine. The vaccines are leaky, as evidenced by the recent outbreak in the Northeast. A saner strategy with leaky vaccines is to vaccinate the small population that is vulnerable and let the rest of the population of develop a natural herd immunity. Otherwise you are creating a fitness advantage to resistant strains.