You need actual cost and benefit analysis. The situation can actually be different if some measures prevent spread by 1%, 10%, 50% etc.
Cost and benefit analysis can be ineffective or unwanted in beginning stages of a pandemic.. but for COVID-19 it's been few years already and we can do such analysis.