As Israel faced an army on one side and a sea on the other they could have decided to either try and swim or to fight the Egyptians. Both of those options would have had poor results. Instead they chose to listen to Moses who said
To say that the Bible is inerrant is to say that there are no errors or mistakes in the Bible. The doctrine of inerrancy is inseparable from the doctrine of inspiration. It’s quite simple actually. If God told Moses to write something down and God is the author, then there can be no mistake because God is perfect.