The cold & flu were bad examples since they do share some similarities. A better example would be food poisoning and the flu: eating spoiled food doesn't make you less likely to catch a respiratory virus.
Reminds me of the somewhat silly phrase of "what doesn't kill you makes you stronger." Unless, of course, it leaves you much much weaker. Which is very possible.