It is far more important to figure out what you don't like than what you do. I agree with this, and I would make it stronger.
We start from what looks good
Most people ask one question. What do I want out of life?
They ignore the other side. The traps. The dangers. The "I don't want this."
So they start a career or a project because it looks shiny and attractive. And because they never consulted with what they don't want, eventually they have to face it. Five or ten years later, after they have already invested a lot, they see the other side of the coin. And it is not just "I don't like this." It is "I don't want this."
An example
Imagine you go to law school. Something attracted you. Maybe there are lawyers in your family. Maybe you like to argue and to build arguments.
You chose the career for what looked shiny. Ten years later you meet the other side.
Then one day you have to defend someone you know, for a fact, is guilty. And you have to do your job. You cannot stand up in court and say: your honor, this man is guilty.
For some people that is a real problem. But they find out way too late. After the school, the university, all the hoops and all the money. Now they feel stuck.
Not what you dislike. Where you draw the line.
So here is how I would put it. When you start anything in life, figure out what you don't want.
If it is a career: which parts of this path would I refuse to live with?
If it is a relationship: what will I not accept? What will I not tolerate, whatever this person might do or be?
It is not about liking. It is about where you draw the line, and knowing that before you invest.