Although Egypt lacked a systematic military treatise, Ramses II, with a lifetime of experience, still knew the principles of "a desperate army will win" and "besiege three sides, leaving one open".
To strike down an enemy, one must not corner them, for a desperate retaliation would cause great injury, and might even allow them to find a way out of a hopeless situation. Only by giving them a glimmer of hope, then sowing discord within their ranks, and finally employing the hilt of the sword, can problems be resolved without bloodshed.
Directly deploying a large army to annihilate them is the most foolish act. Not only would it cause substantial losses, but it also makes it easy for people to notice and escape into the wilderness. It is not so easy to trap hundreds of thousands of people, especially with a leader who can perform witchcraft, but now it was different.