The advantage of goggles over glasses is the headband with no arms. The arms can make pressure points under a hat or helmet that cause pain. Wearing a headband over a hat or helmet allows you to easily push the goggles down around your neck if they get hard to see through from water, salt, overclouding or approaching darkness.
Whatever you wear you need to be able to drop into the water and rinse off any excess water or salt build up. Even the best coated lenses will at times need a rinse. I would be suspicious of goggles that seal too close and don't allow excess water to easily drain away.
Dried up salt on the outside can be wiped off with a finger. Water drops on the inside are a bugger.
My preferred eyewear are the Lips Typhoon and Surge glasses. The Typhoon are excellent but the Surge are a lot cheaper and almost as good. The Surge arms have a little bulge that creates a pressure point.
In 2009 I bought some Spex goggles but never used them. I dug them out a while ago and find them quite useful for non-bright sunny days where things are changeable. I sometimes start a session with the goggles but push them down half way through.
spexusa.com/product/spex-amphibian-eyewear-black/Most of my sunglasses experience comes from kite surfing and foiling. Kite foiling in particular can have dry sessions and it's comfortable to be wearing a good pair of sunglasses. Riding high and fast with good vision is a lovely thing.
I use glasses a lot less wing foiling. Everything is closer to the water and falling is more likely. Vision is already obscured by the wing. Possibly more important is that I am working small wave faces and bits of chop and I really want to see what's going on. Water drops and stuff obscuring vision is really annoying.
I wore sunglasses yesterday and it clouded over halfway through. It was easy to take a break out the back, remove the helmet, stash the glasses around my neck and ride on. That's much easier than trying to do it in the water while managing a tiny kite foil board and kite.