Flexible societies excelled in saving lives in the first phase of the COVID-19 pandemic