The flu vaccine is less effective some years than others (3 guesses per year, sometimes they guess wrong), and is definitely less effective in very old people, who have less of an immune system left. That's why the recommendation has shifted (in the US, other developed countries shifted longer ago) for everyone to get the vaccine, not just the people at risk of serious complications.
So I agree that there's no reason to compare COVID-19 with the flu, but your description of the vaccine doesn't appear to be that accurate.