Allah says in the Quran, “˹They were condemned˺ for breaking their covenant, rejecting Allah’s signs, killing the prophets unjustly, and for saying, “Our hearts are unreceptive!”—it is Allah Who has sealed their hearts for their disbelief, so they do not believe except for a few—and for their denial and outrageous accusation against Mary, 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. Even those who argue for this ˹crucifixion˺ are in doubt. They have no knowledge whatsoever—only making assumptions. They certainly did not kill him. Rather, Allah raised him up to Himself. And Allah is Almighty, All-Wise” (Quran 4:155-158).
From reading these verses, one might wonder why Allah would make it look like Jesus PBUH was crucified. However, this action is clearly not Allah’s fault, rather, it is the fault of those Jews. Do people expect that Allah would just let his Prophet be killed by the hands of the disbelievers? The Jews tried to kill him, so of course Allah is going to save his Messenger. Additionally, it is clear from history that there were very early Christian writings and Christians that believed Jesus was a Prophet and didn’t believe that he had died (We would believe that these “Christians” would actually be called Muslims since they submitted to God and followed their Prophet, but I will call them Christians here for argument’s sake). For example, the Ebionites (years 30-80 C.E.), who were among the very earliest Christian people, believed that Jesus was just a Messiah and Prophet of God, and that the one true God is The Father. This is exactly what Muslims believe. So saying that Allah helped start the religion of Christianity is a baseless claim, as many early Christians who believed in the true teachings of Jesus Christ knew who he was only a Prophet (it was not until hundreds of years later in 325 C.E. that the Council of Nicea officially voted and agreed that Jesus was co-equal to God), and those who tried to kill Jesus PBUH were already disbelievers. To add on to all of this, if Allah showed Jesus being raised to the heavens instead of making it appear like he died, that would have definitely misguided the people even more and they would have definitely thought that he was God and divine at that moment. So to conclude, there are many wisdoms behind the decisions of Allah, but it is very clear that this action was the fault of those Jews who tried to kill Jesus PBUH, and Allah protected his Prophet from the disbelievers.
And Allah knows best.