Intel Core i5 7400 's Advantages
Integrated graphics card
Lower TDP (65W vs 112W)
Intel Core i5 7640X 's Advantages
Higher specification of memory (2666 vs 2400)
Larger memory bandwidth (42.7GB/s vs 35.76GB/s)
Higher base frequency (4.0GHz vs 3.0GHz)