Host–pathogen immune feedbacks can explain widely divergent outcomes from similar infections