Look at what their professors work on, can you see yourself working on these topics? If yes, then check their placements: can you see yourself working at one of these schools?
i think fit with a program/advisor is much more important than program ranking. I’d rather be at the 30th ranked school with the perfect advisor that feeling lost in a top 10. Your goal is to do the best work you can, so figure out what you need to achieve that. The rankings are imperfect signals