Associated question: If the evacuation attempt failed at the outset and the Germans captured or killed the entire group of 338,000 soldiers, would, as some have suggested, Britain have sued for peace?
Also, how long would Germans have likely strafed and bombed the beaches before allowing surrender discussions?
More can be said here, but our recent Megathread on Dunkirk should be of use to you.