• if word2.endswith(word1, 1)?

Question related to mission The End of Other

 

I see this in some of the solutions, but it completely baffles me. I know that it's to keep the function from returning True when word2 == word1, but I don't understand how! Wouldn't it see that word2 == word1 and exit with True?