Evolution works to optimize host fitness, so whether elimination or tolerance occurs depends on which would benefit the organism most in a given scenario. If the antigen is from a rare, dangerous invader, the costs of tolerating its presence are high and it is more beneficial to the host to eliminate it. Conversely, if experience (of the organism or its ancestors) has shown that the antigen is innocuous, then it would be more beneficial to tolerate the presence of the antigen rather than pay the costs of inflammation.