Answer
The amount of charge transfer is very small in the first case.
Work Step by Step
The energy delivered is small in the first case because you quickly discharge your excess charge and come to the same potential as the doorknob.
A power line continues to supply current as long as you are in contact, and the prolonged power discharge into your body results in more damage.