Harry ran, and part of the reason was that he knew for an absolute fact that Hermione would try to stop him from going to Hagrid.
Though he had to admit there was some sense to what Hermione said—Hagrid was indeed a bit unreliable when it came to certain things, like his definition of dangerous creatures being completely different from ordinary people's.
Even so, Harry still preferred to ask Hagrid for help.
Chapter 306