Since the smith machine stabilizes you, the lower back does not have to do the job but it is working the same synergists as in barbell squat, same actions, same motion.
Personally, I would rather choose a varitation of the two. Also on a smith machine you are less likely to get injured, because...