This question has options. Does the word "mechanism" have the same definition in the next two sentences?

The mechanism of the ear.

The mechanism of infection.

Choose your answer from:
(A). different meanings;
(B). the same meaning;
(B).