For gaming at 1080p (with some exceptions -like LOL for example) you will need a gpu, otherwise you will have to play on low-medium settings, and some games will not even work.
That being said, the 6400k has better integrated graphics than the intel- so yes, that one is the better of the two.
What is your budget though? We can make a build for you.