There are two schools of thought:
(1) Go to a school with a good reputation. Who cares if you learn anything, your future employers will be overwhelmed by the school you attended and ignore your knowledge, your research, and your performace at that school. Take Harvard for example. 90% of all grades given are A's. Well over half of all Harvard graduates will have a perfect 4.0 GPA when they finish. No employer can ever tell one Harvard graduate from another since they all have the same GPA.
(2) Go to any school that you will excel in. Then work your rear end off. Learn as much as you can, do great research, and then impress your future employers with your abilities. Get a near perfect 4.0 from a school with an average GPA around 2.0, then put that statistic on your resume.
Each choice has its ups and downs. Many people will succeed with either option, some will fail with either option.
I personally choose option #2. Why? (A) Higher salary as a grad student. (B) I feel I learn more. (C) I can choose any research I want. (D) More fun as a student. (E) Closer to family.
Feel free to follow either path. To me, getting accepted to any grad school I wanted was the easy part. The hard part was determining which would have the best impact on my overall life.