My beloved friend the great ilui הרב צבי משה קנטור שליט"א asked a fine kashya.
What is the difference between the rule of אי עביד לא מהני [see Temurah 5] and מצוה הבאה בעבירה. The gemara never discusses one rule in the context of the other rule even though they seem to be the same thing.