Prioritizing subject matter of future PhD versus university and professor
Some people are fairly agnostic about their choice of dissertation topic and are happy learning to become interested in whatever interests their advisor. The fact that you are posting this question suggests that you are not one of those people.

You'll be happier, do better work, and set your career in the right direction if you pick an area that genuinely interests you. It's true that an advisor's prestige has a lot of currency, but it's not worth so much that it makes sense to sacrifice what you feel is best for you in the long run. Grad school is tough enough without the stress of added friction.