Intel Core i5 7400 's Advantages
Integrated graphics card
AMD Ryzen 9 5900 's Advantages
Released 4 years late
Higher specification of memory (3200 vs 2400)
Larger memory bandwidth (51.2GB/s vs 35.76GB/s)
Newer PCIe version (4.0 vs 3.0)
Larger L3 cache size (32MB vs 6MB)
More modern manufacturing process (7nm vs 14nm)