I gave an elderly woman candy instead of medicine
Thats horrible! What did you give her instead of medicine?
It wasn't medicine, but balls of sugar
Well, that's definitely not medicine. If you didn't give her medicine she needed that is really wrong. On the other hand if she didn't need the medicine but thought she did, it may have been an ok deception.
It's good. She needed candy.
You shouldn't assume what someone needs if you're not a doctor. If she was supposed to take that medicine then maybe someone prescribed it for her. At her age its important that she sticks to what she is supposed to take.