While it is known that casting spells for damage dealing is not optimal, it is useful to know that suboptimal play from a wizard is superior to the basic fighter option.
Or rather, you have shown that optimising for something less than ideal (damage) a wizard can still outperform a fighter...