Consequences are instructive! They teach! All behaviors have consequences. Have you ever hit your thumb with a hammer? The pain is a consequence!
Punishment can be divisive and polarizing. Punishment is the intentional infliction of pain and/or distress. It builds resentment and does not encourage cooperation.
Most of what we learn we learn by making mistakes.