Samsung breaks easily, and most of it's phones lag too much.
iPhone is good in quality, but you can't do much with it as with Android.
To me, quality is a bit better. But if the phone has no applications like Nokia, then it can say bye bye.
iPhone > Samsung > Nokia
But in selling markets; Samsung > Apple > Nokia
Only because Samsung makes too much phones.