This makes... No sense. There is no guarantee that any action Ukraine took would have prevented war. The counterfactual could have just meant more war.
If it makes no sense, then clearly you haven't been paying attention to the facts on the ground. How can you say peace has no chance if you never give peace a chance?
Please show a single instance where Ukraine made any significant concrete effort to implment the Minsk accords, for instance.