A record number of people applied to medical school this year, many inspired by the health care providers on the front lines of the COVID-19 pandemic.