In my mind, beating myself up is vastly different from effectively criticizing myself. If I choose the first option, I wallow in ineffective thought patterns. If I choose the second option, I’ve taken a step toward addressing a deficiency. The first option is harmful, while the second is, IMHO, necessary.
Neither is pleasant.