I disagree that it was unavoidable. I said to my family in February that the UK should stop all - absolutely all - flights into the country. The cost of this would have been miniscule compared to what ended up happening.
(Not just flights - everything except essential goods including via trains, ships and lorries. Certainly all people should have been disallowed entry.)