Best PC for gaming

I was just in a Costco and was looking at the prebuilt pc’s and know nothing much about gaming pc’s. So out of these two pc’s which one would be the better option build wise excluding the prices. Thanks for y’all’s help