If Trump sincerely felt he was justified in withholding the aid, there are legal means to do so. The law requires that Congress must be notified.
He went around those legal means.
The procedures were explained a few times during the hearings.
The only "punishment" is removal from office.
So it's more akin to a civil proceeding in which a person is removed from a job.