Candy: most anything you like so much that you could easily eat a whole boxful.
Confection: a dish or delicacy made with sweetness. also it is the action of creating, compounding, the mixing of ingredients. such as medicinal mixture that includes sweet syrup of some kind.
Both highly desirable thing to have! I prefer to blend both candy and confections in one meal, perhaps dinner.