You're heading into epic levels. My suggestion would be to take the Epic Spellcasting feat, which gives you an extra 6 to 9 ish extra spells per day, except these spells are super mega spells that are better than any other spells and also incredibly versatile because you get to make them up.
When developing epic spells, you should usually use mitigating factors to lower the Spellcraft DC to 0 so you don't have to spend time, money, and experience on developing the spell. Such mitigation does not mean that your spell will be weak, however! For example, a spell that summons a Half-Celestial Great Wyrm Gold dragon and binds it permanently to your service can be made to have a DC of 0 by granting the spell a casting time of 100 days and requiring some combination of ritual participation and XP expenditure. Since ritual participation greatly lowers the DC of a spell, and since you can easily summon casters to assist you (a permanent solar requires only 6,000 XP), you will soon be able to set aside XP costs in favor of ritual preparation, even without the boon of such a feat as Epic Leadership.
Don't shy away from 100 day casting time spells! With a simple Maximized Plane Shift to a Plane with the erratic time trait (or a casting of Maximized Genesis), such spells can be cast in less than a round of Material Plane time.
Because of the power of Epic Spellcasting, the actual class the character possesses is much less important than that they are both arcane and divine, and both prepared and spontaneous, and that they progress Knowledge(Arcana), Knowledge(Religion), and Knowledge(Nature) as much as possible.
Epic Spellcasting also makes progressing any other kind of spellcasting rather moot, since you can increase the attributes upon which your spellcasting depends to very large numbers for years via the Fortify seed. Since your ability to cast spells is thus entirely disentangled from your class progression choices, it makes sense to pick a class with fun class abilities that progress your character in other areas, perhaps adding new ways to cast spells or metamagic or turn undead attempts or unusual spell lists or what have you. Regardless of your choice, the impact of your choice will be much less than the impact of the choices you make in optimizing your Epic Spells, and deciding whether or not to take Leadership/Epic Leadership/Legendary Commander.