It is a very dumb rule, but it is not inconsistent. The tech wasn’t for hanging on the rim too long. The rule is you are allowed to hang to steady yourself, but you are not allowed to pull up on the rim. It was that last second where his elbow is 90 degrees that caused the tech.
He definitely sold it but at least there was contact and a decent performance. If anything I’d happily have this be a be a no call of it meant we could get rid of the dramatic head fakes people do. They’ll act like they just got uppercut, but the replay shows a couple inches of air between the defender and the ball handler.