All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger. We ask Allaah to exalt his mention as well as that of his family and all his companions.
Comparing the Prophet as mentioned in your question is despising him and degrading him, and it is feared that the person who gave this example could become a disbeliever and out of the fold of Islam, and his statement, “the comparison is not the same” is of no value. Had there been any honourable status of the Prophet in the heart of this person, he would not have given such an example, rather he would have looked for another example which shows the greatness and the honourable status of the Prophet . Therefore, this person is obliged to repent from this despicable act instead of defending his falsehood. Treading the true path is better than persisting in falsehood. May Allaah grant people the knowledge of how to behave towards to the Prophet and respect him.
Allaah Knows best.