Intel Core i5 6400 's Advantages
Integrated graphics card
Lower TDP (65W vs 105W)
AMD Ryzen 7 5800XT 's Advantages
Released 8 years and 10 months late
Higher specification of memory (DDR4-3200 vs DDR4-2133)
Larger memory bandwidth (47.68GB/s vs 34.1GB/s)
Newer PCIe version (4.0 vs 3.0)
Higher base frequency (3.8GHz vs 2.7GHz)
Larger L3 cache size (32MB vs 6MB)