A beach has sand or pebbles on it where you can sit. Usually it's on the ocean, but it could be on a large lake or river.
The coast is on the ocean (not a lake or river) and might have a beach ⛱️ or it might have a cliff (like the cliffs of Mohr) or it could be rocky it have a deep harbor.