I would get the first one, the CPU cores are better than the AMD, it is a 2 in one and has a touchscreen, which should make windows 10 nicer to use.
the other one has better onboard graphics a larger screen and an optical drive.
the real question is what is most important to you, screen or touchscreen, graphics or CPU?