You can't compare my problems and yours.
John compared his haircut to his friend's.
Does the word "compare" mean the same thing in the above two sentences?
the same meaning