The GHz difference is not a factor since the CPU architectures are different. Intel's IPC is higher than AMD's, so is faster, clock for clock.
Photoshop might benefit from the additional RAM, but you can always upgrade that (probably also to 8GB) on the Intel, which will be quicker in Photoshop.
If you want to play games, the AMD laptop is still the better choice. Consider whether or not battery life is important to you, and see which is longer. Keep in mind that the number listed will almost always be lower in actual use, particularly anything very demanding like games. Replacing the included HDD with a SSD (specifically a Samsung, which has remarkably low idle power usage) may increase battery life by a decent amount (I gained over half an hour, maybe as much as an hour, on my low-power Lenovo X140E; on the models you are considering, the HDD represents a lower percentage of total power draw, so half an hour may be the most you'll get).