One year, not two.
There was never any hope of containing COVID. It was endemic by the end of 2019. Individual countries had a chance of avoiding it with border controls that no Western country has the political will to implement - but the will to implement an indefinite policy of sakoku no longer exists anywhere. Since COVID was globally endemic before official sources even acknowledged human-to-human transmission, there was never any hope of not taking the bullet eventually - although in theory "eventually" means "until the next Commodore Perry".
A reasonable strategy would be to slow the spread of the virus to study vaccines, treatment protocols, and the possibility of long-term sequelae, and to build medical capacity, and then, at some point, declare good-enough preliminary results and (modulo medical capacity concerns) let it rip. Letting it rip while there are still such vast unknown unknowns is irresponsible and only potentially justifiable in hindsight - Anders Tegnell looks good now, but it could've been a lot worse.
But the propaganda machine can't turn on a dime, so the measures lasted much longer than they had any reason to, at least in the parts of the "Free World" that believe in respecting established authority qua established authority.