Young plants that resist disease grow fewer flowers later, limiting their reproduction. Adult plants resist disease without this cost.