I've done an hour commute, and I've done a 15-minute commute.
Hour commutes suck. I would not do it solely for a "best" school if "good" schools were available.
My criteria for a "good" school was:
a) has a librarian, art teacher, and music teacher at every school [I moved to a 45-minute commute once when the local schools where we lived threatened to cut librarians]
b) has an actual all-day GT program [I have a kid who needs lots of intellectual stimulation or he's a behavior problem]
c) has enough desks and books for each kid
d) has an AP or IB program in high school/advanced math starting in junior high
e) doesn't have a ton of police reports for the school/known gang issues
f) has a variety of extracurriculars for middle- and high-school kids
g) has a sizable population of kids who don't look like mine (race, language, religion, socioeconomic status)
My kids will thrive wherever, because we're involved, well-educated parents. I want the school environment to be safe, not awful, and provide them ways to enjoy learning.