YMMV, but DH and I bought an oceanfront condo in So CA in 2003. The views still amaze us 15 years later. Sure, we could have bought a similar sized condo just a few blocks inland for less than half the price and looked at the buildings next door and across the street instead of having an unobstructed view of sand and ocean. But we’re glad we went for it.
When real estate markets crash as they inevitably do, well-located property usually doesn’t go down as much and rises faster after the bottom.