In your opinion, which is more important when deciding where to do a PhD?

Choosing a top-tier university with a brilliant professor who is an excellent mentor or choosing a decidedly average university with a professor who you do not know the quality of their mentorship, but the subject matter is naturally more interesting to you?