Non-genetic diversity shapes infectious capacity and host resistance.