I am currently in the process of doing a PhD, so my answer may change in the future.
- You must work with someone you like.
In a world where you do industrial job instead of academics job, this may not happen frequently, and is not THAT needed. But in academics, since things are much harder, and your advisor is pretty much your "second family", you must work with a guy you are comfortable with.
You should appreciate him, think highly of him, and you can get constantly inspired by him. If you find such a professor and he likes to work with you, you should go for it.
I know that you can always learn from people, but different professors have different styles. I mean, they are all smart and hardworking, but they are different in nature. Some professors just don't want to do things deeply, as long as it can be published in a journal he thinks is enough, it is enough. Some professors are full of ideas but need YOU to figure out the details, and they don't like working on the details, so if you want to show them your detail, they may be disinterested.
You need to find a same type of person, or a person you want to become. So, if you find the person, you should go for it. This is really important. Imagine if you working with someone, when you ask a technical question, they can't answer or don't care to answer, but you are really into techinical details? You guys will torture each other for the next five years.
- About what if you are not that interested in that subject.
I think that whatever the subject it is, once dig deep enough, it is always interesting. The common feeling we have "oh that's not that interesting" is because we are in the phase where we already dug a little, so we already know a little, but we deeply know that once digging deeper it would not be this easy anymore. So, we always have this
"interesting" ---> "nah" ---> "oh this is actually quite deep, i love it".
Yeah, there will be some subjects you just genuinely not interest in. In such a case, you can never be interested in it. Then, I really doubt that you will also like that professor. If you indeed do, that will be a tough decision. I don't know what to suggest.
For me, I am really technical and like focusing on details. I also tend to dig really deeply at a point on the knowledge surface (which is not, in general, a good habit). I also need constant feedback, and really frequent communication, yeah, you can call me insecure. So, I need an advisor who also like thinking deeply, doing technical stuff, and like talking to me, like doing Q&A often, etc.
I am really happy that I found my "perfect match" in this PhD program. Also, I really respect him and I think that he is the best professor in terms of teaching and research I have ever met. Every time I talk to him I am so excited. He also appreciates me, thinks highly of me, which really boosts my confidence to challenge myself more. I start to expect more from myself, so I work more and harder. You see, then you enter into a positive cycle. In particular, luckily for me, he is also working in the frontier of the field, so I don't need to worry about if I am working on something that no one cares.