Eliezer wrote somewhere about what in HPMOR can and what cannot be taken as the author’s own views. I forget the exact criterion, but I’m sure it did not include “everything said by HP”.
″ please keep in mind that, beyond the realm of science, the views of the characters may not be those of the author. Not everything the protagonist does is a lesson in wisdom, and advice offered by darker characters may be untrustworthy or dangerously double-edged.”
This is mentioned at the beginning of the book
″ please keep in mind that, beyond the realm of science, the views of the characters may not be those of the author. Not everything the protagonist does is a lesson in wisdom, and advice offered by darker characters may be untrustworthy or dangerously double-edged.”