Agreed. And you should be looking not just at the topic area, but specific faculty. If you're interested in specialty XYZ, you want to be taking classes from the leading instructor of XYZ. Not only do you get the obvious benefit of learning about your favorite specialty, but when somebody in industry who knows nothing about XYZ needs to hire somebody, they'll often get in touch with the top names (or somebody who knows them). Guess what? If you're a strong grad student working with that expert, you should be able to get hooked up with the overflow and be working on your favorite topic before you're done with classes.
A "good school" is a general resume boost for your first job. Training under a subject matter expert can boost you throughout your career. Follow the key expert, not the school/program.
If the aborigine drafted an IQ test, all of Western civilization would presumably flunk it. -- Stanley Garn