If I’m looking at a level 5 wizard vs level 5 sorcerer. The wizard knows 14-16 spells (subclass dependent) and maybe one more from magic initiate. He can prepare 9.
By the time you add in whatever rituals the wizard doesn’t want to prepare. Find familiar, tiny hut,detect magic, comprehend...