Go with the HP. Larger Screen, Shitload bigger HD (256GB vs. 2TB free space with a 120 GB SSD for your OS), GHz is the same but it's Quad Core vs. the Macs Dual Core so it'll be able to manage more applications at once and you had a small amount of room for slight overlocking, it has 8GB more RAM, and it's i7 vs. the Mac which is i5. Choice is clear here.
Photo editing would be better on the Mac as you'd have the Retina display, therefore much higher pixel density making it easier to do those more refined edits on photos.
However price > performance, the HP wins, on paper.
If you're looking for real performance for the same price you'd be better off building a desktop. You can do all of the same things plus play what ever game you could possibly want. My build cost about what you're going to spend on a laptop.