It's really obvious at this point that Taiwan got lucky and that the geographical luck of not being close to Europe or having lots of visitors from there helped a lot. The moment Covid-19 actually got a foothold in the country they really started struggling and their testing for it collapsed under the load - and this was in May 2021, when we knew a lot more about Covid and tests for it were a commodity item produced in massive numbers. Western Europe and the USA hit this point in March 2020 with much less information available about the disease, no treatment options, and far less production capacity for Covid tests. (Probably due to all the people travelling there from a country that was reporting zero cases whilst a substantial proportion of their population was infected. Something seems to have gone seriously wrong in Italy that's been almost entirely ignored by the media, maybe because it's lead by the kind of boring technocrat they like.)
Unfortunately, all the media reporting on which countries have succeeded or failed and why seems to have been incredibly inaccurate and blatantly partisan.