Phone software is not the same thing as a phone model. As a phone model the iphone has done well.
But the Samsung Galaxy II S is better. For example, it has a OLED display. And has better CPU and RAM
Better? Most reviewers do not think so. Different yes. The sammy has a bigger screen, and if you want that over display quality then it wins, if you want display quality over size, then the retina display is hard to beat. http://www.gizmodigit.com/showdown-samsung-galaxy-s2-vs-apple-iphone-4/http://www.knowyourmobile.com/blog/921534/samsung_galaxy_s2_woe_as_screen_defect_persists.html
Also the manufacturing quality has had problems. In the beginning a few iphones had temporarily yellowing which went a way on its own, but nothing like the current failure rate of the 2s with its persistent yellowing.