If it happens, Russia gets to choose when and how. Only then do Ukraine’s far more limited choices come into play.
Ukraine will react based on the scale of a Russian invasion and the directions from which it comes. The bigger the invasion, the more difficult choices there are.