Intel Core i9 9940X 's Advantages
Larger memory bandwidth (85GB/s vs 76.8GB/s)
Higher base frequency (3.3GHz vs 2.5GHz)
Intel Core i5 13400 's Advantages
Released 4 years and 3 months late
Integrated graphics card
Higher specification of memory (4800 vs 2666)
Newer PCIe version (5.0 vs 3.0)
More modern manufacturing process (10nm vs 14nm)
Lower TDP (65W vs 165W)