Assuming this is for gaming...
If the 1070 is 8GB and the 980 is 4GB and you don't want to OC the CPU, I go with the i5-7400.
If the motherboard is suitable for OC'ing and you want to do that, then the i5-6600K may be the better choice. IT really depends on your requirements and usage.