General anesthesia does have an analgesic effect. Many people who woke up during a surgery have reported not feeling any pain. My fear is that sedation, on the other hand, could lead to the patient suffering but not remembering (much of) it afterwards.