Intel Core i5 7400 's Advantages
Higher base frequency (3.0GHz vs 2.1GHz)
Intel Core i7 12700 's Advantages
Released 5 years late
Better graphics card performance
Higher specification of memory (4800 vs 2400)
Larger memory bandwidth (76.8GB/s vs 35.76GB/s)
Newer PCIe version (5.0 vs 3.0)
Larger L3 cache size (25MB vs 6MB)
More modern manufacturing process (10nm vs 14nm)