Intel Core i5 12400F 's Advantages
Newer PCIe version (5.0 vs 4.0)
Larger L3 cache size (18MB vs 16MB)
AMD Ryzen 5 8400F 's Advantages
Released 2 years and 4 months late
Higher specification of memory (5200 vs 4800)
Larger memory bandwidth (83.2GB/s vs 76.8GB/s)
Higher base frequency (4.2GHz vs 2.5GHz)
More modern manufacturing process (4nm vs 10nm)