A macroeconomic model of healthcare saturation, inequality and the output-pandemia tradeoff