Obviously the main difference- technology aside- is intent. Torture was meant to extract information or to cause suffering for its own sake. Modern surgery is meant to cure or correct an illness, injury or other condition. It's the difference between arson and lighting your fireplace.
_________________________
“I'd rather have questions that cannot be answered than answers that can't be questioned.” —Richard Feynman