Are pandemics a public good problem?