The comma makes the second incorrect. I am not sure about river-bank being hyphenated.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Are either of these two following sentences correct?
1) The driver managed to escape from the vehicle before it sank and swam to the river-bank.
2) The driver managed to escape from the vehicle before it sank, and swam to the river-bank.
She earned high marks and was a good student. What's wrong with that?