Perhaps this has been brought up before, but I think the success/defeat conditions need some polishing- its possible to lose a game, even when victory is still achievable.
A quick example: Load up Battle of Mexallon II (normal/easy). Stack your fleet with (only) a pile of cheap, fast fighters- you should have most-but-not-all of your pilots filled, and about half of your ship value. Run the battle- you should mop the computer easily. Go back to the fleet page, and, to your fighters, add as many points in expensive-but-vulnerable cruisers as you can (I used my standard anti-fighter cruiser- it has no heavy guns. You should be able to add at least 3). Set your fighters to sit in formation (tied to the last cruiser that will likely be killed) at a corner of the map. Run the game, and watch as just your cruisers get killed and you fail the battle, even though you still have your fighters waiting, untouched.
Obviously, this specific example takes some work to create, but the point is that it clearly exists.
As I don’t know exactly what the conditions are, I don’t have a GREAT suggestion on how to resolve it, nor do I suggest removing the function, because in 99% of battles, it works great.