The second one you've listed should be perfect for your needs. Avoid that first one; as IchoTolot said, it appears to lack a dedicated GPU. Onboard GPUs are generally
very weak compared to dedicated ones, especially in Intel machines (they're not
as bad in AMD machines, but still much weaker than a dedicated GPU); and a GPU is
the most important factor (even more so than the CPU) for most gaming. (NeoLemmix is a weird exception here, because it renders its graphics entirely on the CPU. Most games do
not work this way.)
Also, do keep in mind that gaming laptops exist too, if you prefer laptops. Just do your research with reading the reviews, to make sure they aren't overheat-prone when used for gaming. Alienware generally make very good quality, high-spec, non-overheat-prone gaming laptops, but they also come with a
very premium price tag. And make sure the laptop you get has a dedicated GPU - it wouldn't matter if you had one of those 18-core Intel i9 CPUs; you'd still have bad gaming performance if the graphics are running off an Intel HD chip rather than a mid-range-or-better GeForce or Radeon.

(And here, it wouldn't help NeoLemmix either - higher-core-count CPUs tend to have less performance per core. NeoLemmix doesn't take advantage of multi-core CPUs to much extent - I believe that the way the sound library works, it will use a second thread (which will likely run on a seperate core) for audio, but that's it; everything else happens in a single thread, on a single core.)