They would avoid built up areas obviously. Why would they ditch in the sea where a rescue of those on board, who didn’t drown when the aircraft splits and sinks, would be so much more difficult?
Crashing on concrete is much safer.
As I said, read up on the Alaska flight. The pilots were praised for their decision to stay out over water.