Q:

Pinchas and Halacha In Front Of One's Rabbi

The Gemara in Eiruvin 63a,b learns that one is not allowed to paskin a halachah in front of one's Rebbi.
Multiple examples and details are brought. In particular, Elazar haKohen taught the soldiers coming back from the war with Midian the halachos of making utensils kosher when Moshe was standing by (and forgot the law, as is expounded by a midrash). Even though Elazar said respectfully,

and this is the halacha that Hashem said to Moshe

still, he was punished.
My question is, don't we observe a similar effect with Pinchas suggesting to Moshe (before slaying Zimri) that this was the halacha that Moshe himself taught, and Moshe replied that it's fitting therefore that Pinchas himself do the killing.
But what is the difference between Elazar's statement and the one from Pinchas - we see no mention that he was ever punished for paskening in front of Moshe?

A:

The Gemara (Sanhedrin 82a) states that when Pinchas saw Zimri consorting with Kazbi the Midianite, he said to Moshe: Did you not teach me that if someone does such a thing, zealots may kill him ? Moshe replied with a parable: Let he who reads the letter, fulfill its instructions.
So it would seem to me that Pinchas did not Pasken before Moshe Rabbeinu, but rather according to our sages, he asked a Shaila of Moshe Rabbeinu based on the halakha that he had heard from Moshe Rabbeinu.  If this was forbidden every Talmid Hakham in every Yeshiva would be in major trouble.

A:

The Gemara Sanhedrin 82a(Shmuel's opinion)says that Pinchas had an emergency situation whereby the name of G-d was being disgraced and no one was doing anything about it; if there is a clear conflict we say ein chochmah v'ein tevunah neged Hashem, human dignity is overridden, so he ruled in his teacher's presence.

