Question: Here is one sentence: A leak in a boat.
Here is another sentence: A leak in a roof.
Does the leak mean the same thing in the two sentences?

Answer: the same meaning

Question: Here is one sentence: We hope you never have to suffer the same pain.
Here is another sentence: Many saints suffered martyrdom.
Does the suffer mean the same thing in the two sentences?

Answer: the same meaning

Question: Here is one sentence: Do you know the way to the airport?
Here is another sentence: They split the loot three ways.
Does the way mean the same thing in the two sentences?

Answer: different meanings

Question: Here is one sentence: Give him his due -- he is a good actor.
Here is another sentence: Give the devil his due.
Does the due mean the same thing in the two sentences?

Answer:
the same meaning