Booking for the highest class possible means that you will be placed in that cabin, or any cabin below it, should the booking class not be available.
If you only list for coach, and there are no Y seats, but there are in First or Business, you won’t be cleared for the flight.