All these factors together were used to decide on the strategy. Subscribing it to luck is unfair. It is more about expertise or lack thereof. A bureaucrat with little practical expertise is less likely to take risks since they are afraid of being exposed as lacking knowledge. Anders Tegnell most certainly was not afraid of going against the grain.
Introducing lockdowns in nursing homes early on would have avoided probably 60%-80% of deaths. This applies to Sweden and other countries as well.