Usually the hanger is what bends, not the derailleur itself. You can purchase derailleur alignment tools to help you straighten a bent hanger if you don’t want to take your bike to a shop.