I doubt that immunity
and immune-system
should be synonyms. They are obviously closely related but as far as I know they are not synonyms rather just related to each other.
I'd argue that immunity
is caused by the immune-system
but immunity
itself is not the immune-system
.
Is it used as the same thing in some medical context that I am not aware about?