This really is the crux of the necessary  better to have fought and withdrawn than never to have fought at all.
According to the necessary better It is better to have fought and withdrawn than to not have fought at all.