What’s the difference between מידת חסידות and לפנים משורת הדין?
It would seem that לפנים משורת הדין applies in a case where either the sages obligated us to do so - based on the Mitzvah of ״ועשית הישר והטוב״, or if there is a reason for this case to be an exception - e.g. the person is of high stature, like the Rambam writes (יסודי התורה…שלום · miyodeya · CC BY-SA 4.0