Smith machine is great when you don't have a training partner, and gives you more confidence to increase weight.
Both hit the muscle correctly, so they both work your pecks,but with the free weight you have to balance the bar, which stresses more the muscle, in consequence you will probably have a thicker peck and slightly bigger.