My opinion: fitting (your interest and the program) > ranking of grogram > location > stipend > other.
1. Do the research you like! Ph.D. is at least 5 year commitment and the your Ph.D. research is the fundation of your whole career. So in certain point, your happyness in your research depends on "how is the fitting".
2. In the future, when you are introduced, the sequence: your name, your grad school, ..... higher ranking program can provide your strong research fundation and hot direction, also decent networking. You will benefit from him/her a lot when looking for an academic job.
3. Location may have impact on industry job hunting, but not impact on academic jobs. Of course, the weather, the city, that depends on the individuals.
4. Personally, I don't care how much is the stipend when making decisions on picking my Ph.D. program since I can have a good shape without worrying about living expense.
What is your opinion?