Maxperson
Morkus from Orkus
In the world that you count the fighter's subclass, too.wait what?!?! the wizard at 9th level gets 4 cantrips, 4 1st level spells 3 2nd level spells 3 3rd level spells 3 4th level spells and a 5th levels spell arcane recover and 2 subclass features for a total of 21 class features
the fighter gets fighting style, second wind, action surge extra attack, indomitable, and 2 subclass features and a bonus ASI/feat for a total of 8
in what world does a fighter have MORE?
even if we take the spells per day out and just sat 1st level spells 2nd level spells 3rd level spells 4th level spells, 5th level spell, Cantrips, arcane recovery and 2 subclass features that's 9!
The Battle Master subclass ability comes with, at 8th level 5 superiority dice that can be used to pick from 5 maneuvers and do extra damage. That's 5 uses, since you are counting spell slots separately. Fighters also have 3 subclass abilities at 9th level. That brings Battle Masters up to 14 compared to 21 for the wizard, 4 of which are cantrips which match fighter's attacks or something else really minor. So really 14 to 17 and 1st level spells aren't much better than cantrips.
The strength of a wizard is not in doing the roles of others, but rather in the versatility that allows it to fill the gaps left by the other classes.