It depends on your preferences. Beachfront accommodation is on the ground floor or just on the beach, it allows you to walk from your courtyard straight onto the beach and swim. Oceanfront can imply the lack of beach, or the apartment is located on some floor overlooking the ocean.