In the aftermath of their near-indiscretion, Elliot realizes she doesn’t want to be with Keith, and J.D. resolves to stop sabotaging himself.