I think the heart doesn't contradict with the brain except in few cases such as:
1- if your brain tends to do something bad or our conscious doesnt agree with it.. in this case it is better to listen to your heart.
2- if your heart have emotions,Love for example, and this feeling will lead you to make a mistake or gets you a trouble in this way it is better to follow your brain not your hearts