It wasn’t Ramses II, he was way too late. The Pharaoh of the Exodus was Amenhotep II : https://armstronginstitute.org/882-who-was-the-pharaoh-of-the-exodus
One of the best clues is Amenhotep was not the eldest and his successor was his second son Thutmose IV, who was not the crown prince, either.
And it was quite an unusual power grab with something unknown happening to the crown prince:
https://en.wikipedia.org/wiki/Dream_Stele