the mind is not the heart and the heart is not the mind.
These are generic expressions, and so
you may find them synonymously used at different points. The words imagination, thinking, reasoning, inclination are also used interchangeably in referring to activities of the mind, as you would find in Bible translations. This goes to say that there are a broad number of synonyms that are used in expressing the phenomenon of the mind and its activities. Moreover, to better understand the mind, you'll need to understand the scriptural description of the human person.