A wizard can learn every spell in the game from the largest and most versatile list.
Someone always tosses out this canard. While a valid statement, so is stating a Fighter could have every Magic Weapon in the DMG.
Both statements suffer from not being sound: 99.84% of the time a Wizard is not going to know
every spell on the list. Dungeon of the Mad Mage gives 2 chances to find spell books w/ the Wizard PHB spells of 1-8 level, but those are the books of Trobriand and Halaster respectively, ( so well guarded to say the least).
The aforementioned spell books might be the mightiest haul of magical formulae in the
entire history of D&D published adventures, (so rather rare).
Mistwell states my thoughts on Diviner v Evocation well.
Wild Mage Sorc holds their own, and can ruin many a Saving Throw at the right level, and is an excellent Crit Fisher. Ritual caster Feat can give one much greater versatility, if versatility is desired.
Druids have a very versatile spell list;
knows all of their spells...only downside is 5e does not have a ‘Blaster’ type subclass...but D8 hp and Wildshape HP tanking can keep you upright. Circle of the land makes Spell recovery equivalent to the Evoker.
Any Cleric with Potent Spellcasting is close to the damage of an Evoker, cantrip-wise.
A Cleric of the Arcana Domain learns two Wizard Cantrips ( Wis Spellcasting Attribute),
and can chose
one spell from the Wizard list from 6-9th level.