I recall reading that the plagues are arranged in sets of three, and that the timing would have been impossible if interpreted literally. So possibly they were edited later. For example, the plague of hail killed all the livestock that had been left outside, but two plagues previously, all the livestock had already died.
That doesn't mean the plagues didn't happen.
Even if the pharaoh survived, he was humiliated and the state devastated, thus their gods, accessed through the pharaoh, were shown to be either non-existent or not very good at their job.
.....even if the
pharaoh survived.....
Spud, we have almost the full set!
From the very beginning of Egypt's New Kingdom, toill the ninth century BC, we have all the mummies of ther kings...the only exceptions being an ephemeral female ruler who ruled around 1332 BC, Amenmesse of dyn XX (Though some have claimed to identify his mummy as well, but he was defeated, not by a Hebrew insurgance, but an internal family coup), and the virtually puppet RamessesXI. who, at his death, was far too old to have led an army.
We can identify age at death, in most cases cause of death - from cancer, through disease, to murder.
None - not one - shows any indication of having died in battle - though there are suspuicions that Tutankhamun may have died in Syria, fighting the Mittani).
You need to look at the history God has provided, as well as Scripture, before separating fact from allegory, theology or heavily edited oral memory.