To me I this Apple product have more advantages over Samsung because, Apple security level is really strong, if your Apple device is stolen is of no use to the thief, the Apple id security can't be format. While Samsung security is not that strong, samsung battery don't last long and if any of your devices is damage is more expensive to fix than Apple product.
well hackers now a days are becoming better and better mate,apple security from lower model can bypassed by good hacker,my Friends Ipad Mini 2 was change apple ID by His Ex Girlfriend and the girl denied Him to tell which is the new accounts details ,but by Luck there was a Repairman/hacker in our place that offers to handle the gadget in to His surprise?the Ipad was opened and now is being Used .
but the hacker says he cannot do it in higher model,but i think sooner they can find another ways for other models.
so For me?i think either Samsung or IOS?it relies on how we will be using our mobile.