When they spoke about "experimental bodies from the mist" i got the feeling it was something like what happened to Kaien in Bleach. Someone took over Rin's body and Kakashi's only choice was to kill Rin. Not only to stop the enemy and end the threat but also to set Rin free. But to Obito killing Rin no matter what the reason was, was wrong.