Android is the best for installing apps and not only from the App Store. Is also cheap, not that simple but easy to learn, the phones that comes with it are fast and you can stay with them for more than 6 years.
Ios is good, not that cheap tho, but is nice. It does the work since is fast and simple and with Siri you can just say what do you want. Is just overpriced. The iPhones aren't that strong, and they are to overprice.
For short, if you want to play games, make some code and download non-official apps, you can try Android. If you want to work, you can go with IOS.