This hadith is an authentic hadith mentioned in the book of Kafi. Here’s the text of the Hadith:
حميد بن زياد، عن الحسن بن محمد بن سماعة، عن علي بن الحسن بن رباط، عن حبيب الخثعمي، عن ابن أبي يعفور، عن أبي عبد الله (عليه السلام) قال: قلت له: إني أريد أن أتزوج امرأة وإن أبوي أرادا غيرها، قال: تزوج التي هويت ودع التي يهوي أبواك
Basically the Imam is advising this man to marry the girl he is interested in and likes, not the one whom his parents like. This is rational because he is the one who wants to live with her, so it’s important that he likes her. Marrying someone you don’t like can lead to negative consequences in the marriage.
Now this doesn’t mean that one completely disregards his parents when getting married. You should do their best to convince them and please them. If they insisted on their position, and marrying a girl they don’t want will create a huge lifelong problem with them, then of course this should be avoided, since hurting one’s parents is haram.