Your arguments are logical on the surface of it, but they're missing a couple of key points:
1) Drugs, unlike vaccines, can be reused to treat illnesses beyond their original target. This was in fact the case with COVID, and had drug trials been better coordinated, plenty of hospital beds could arguably have been freed up, especially pre-vaccine and in areas of the world where vaccine distribution was behind the curve. Because we're talking about existing drugs, potentially in generic form, they can be more easily/quickly/cheaply manufactured and distributed around the world.
2) Vaccines aren't actually needed if you've recovered from the actual thing. So given an effective treatment, the importance of vaccines is significantly reduced.
3) COVID has more in common with influenza than with polio. It is a rapidly mutating virus that, like the flu, seems to require a new vaccine every year or even every season. There's a reason that to this day most people don't vaccinate against the flu - because available treatments are "good enough" and only really necessary in severe cases. At the moment we are seeing a law of diminishing returns on COVID vaccine boosters, while baseline COVID immunity has become widespread in the population. So we could potentially start treating COVID more like we treat the flu - i.e., drugs and not vaccines as the first line of defense. (Whether this might have been possible from the get-go is an open question.)
IMHO, one reason vaccines were prioritized to the extent they were is because, in the current state of the world, it pays off a lot more to develop a novel vaccine or treatment than to run trials on existing drugs. The pharmaceutical companies succeeded in convincing the government and the media that this was the main/only way forward, to the detriment of funding for trials of existing drugs.
To summarize: Just because vaccines have succeeded in wiping certain viruses off the planet, doesn't prove that they will be able to do so for all viruses. And the reasons for favoring vaccines don't all have to do with logic. When considering how we handle future pandemics, I think the lesson to take from COVID is that trials of treatments, in particular using existing drugs, should be given at least as much emphasis as vaccines, in particular when the target is as fast-moving as COVID is.
From Sharp minds come... pointed heads. -- Bryan Sparrowhawk