Couldn't the left arm just take the hanger off the rod?
Would be interesting to know if the AI figured this out (the hard way, I'm sure).
That extra exchange could have been done after putting the shirt on the hanger, but that would have been more risk for it falling off again.