Apple has the best camera quality, Samsung has best performance. I had used my iPhone 5S for Photography on the go since I don't want to carry a canon camera wherever I go, You can also edit your pictures on it using the camera/photos app which are helpful for editing contrast and etc, You can download apps on the appstore to enhance your photos more.
If you're lucky you might find a cheaper iPhone 7 Plus for a cheaper price, but you should go with Samsung if you're going to use gaming more since I find it really reliable rather than iPhones if you go with gaming, More FPS really. But having a samsung can prone you with viruses which are times harmful to your device, It really depends on preferences but I would go with iPhone since It's really useful if you're going to snap photos. But you could probably find a device which has the capabilities of both really.