i5 7400 vs i7 4770k

I say it depends, because value and upgradability goes to the i5 7400, but i dont know why you picked the i5 7400 instead of the i5 7600k.
What are you planing to do with the CPU?