(Not a Muslim) Question about Muhammed's death.

In the Qu'ran it says An-Nisa 157: and for boasting, “We killed the Messiah, Jesus, son of Mary, the messenger of Allah.” But they neither killed nor crucified him—it was only made to appear so.1 Even those who argue for this ˹crucifixion˺ are in doubt. They have no knowledge whatsoever—only making assumptions. They certainly did not kill him. Jesus (Isa) was not killed by the romans nor the jews and also muhammed was greater than Jesus (Isa). Muhammed was killed a jew in Sahih al-Bukhari 2617 Book 51 Hadith 49: A Jewess brought a poisoned (cooked) sheep for the Prophet (ﷺ) who ate from it. She was brought to the Prophet and he was asked, "Shall we kill her?" He said, "No." I continued to see the effect of the poison on the palate of the mouth of Allah's Messenger (ﷺ) . If Muhammad is greater than Isa and Isa is so great that Allah wouldn't allow him to die than why would Allah allow Muhammad to die? I'm not a muslim I'm catholic, but I have heard of Islam and have questions about it. BTW please say if I got something wrong in the comments.