Heart rate is not a very accurate indicator of effort, unlike a power meter, which only indicates effort. Heart rate is influenced by everything. It's a variable made out of variables. Power is power.
I use a PM and HRM. The power meter is to monitor the actual work done. The HRM is to make sure I'm not overdoing it in terms of overall load, dehydration, etc, by watching recovery rate (HRR.)
__________________