The Battle of the Wizards: Dumbledore vs. Gandalf

It’s obvious that both Dumbledore and Gandalf are important to their respective stories. They both serve as a mentor to the main characters, and really help drive the story along. The question is, who is the more important character? Whose story would be so vastly different without them?