The first one is much better than the other.
It has a better GPU, but the CPU is slightly worse.
I would suggest getting the first, because even if you were to video edit with the other one, the ram would be holding you back as it only has 8gb. The first one has 12 gb, which is more suitable for video editing.
If you record videos and such, just keep in mind that the first one has less HDD space, but a faster speed. Second one has 1 tb, but a slower speed.
IMO, I would definitely get the first