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