Does "replace" mean the same thing in these two sentences?

We need to replace the secretary that left a month ago.

Mary replaced Susan as the team's captain and the highest-ranked player in the school.

OPTIONS:
- different meanings
- the same meaning
different meanings
Betyder "ersätt" samma sak i dessa två meningar? Vi måste ersätta sekreteraren som stack för en månad sen. Mary ersatte Susan som lagets kapten och den högst rankade spelaren i skolan. Alternativ: - olika betydelser - samma betydelse
Does "replace" mean the same thing in these two sentences? We need to replace the secretary who left a month ago. Mary replaced Susan as the team's captain and the highest ranked player in the school. Option: - different meanings - same meaning
olika betydelser
different meanings