AMD Ryzen 7 5700 's Advantages
Released 4 years and 6 months late
Higher specification of memory (3200 vs 2666)
Larger memory bandwidth (51.2GB/s vs 41.6GB/s)
Higher base frequency (3.7GHz vs 2.8GHz)
Larger L3 cache size (16MB vs 9MB)
More modern manufacturing process (7nm vs 14nm)
Intel Core i5 8400 's Advantages
Integrated graphics card
Newer PCIe version (3.0 vs 3)