Name the goal—and its actor.
Um … zu usually connects a purpose to the same actor. Damit introduces a purpose clause with its own subject and finite verb.
Hinglish hintGoal ka actor same ho to um … zu use kar sakte ho; alag subject ho to damit clause banao.
Ask what the goal is
The goal of studying here is passing the exam.
Ich lerne, um die Prüfung zu bestehen.
Aha! See the common trap
Not thisIch spreche langsam, um alle mich verstehen.
Try thisIch spreche langsam, damit alle mich verstehen.
Alle is the subject of verstehen, so this purpose needs a finite damit-clause.
More examples, less guessing
Ich lerne, um die Prüfung zu bestehen.I study in order to pass the exam.
Ich spreche langsam, damit du mich verstehst.Practice the highlighted construction in another context.
Er fährt nach Bonn, um dort zu arbeiten.Practice the highlighted construction in another context.