AMD Ryzen 5 5600G's Advantages
Better graphics card performance
Higher base frequency (3.9GHz vs 2.5GHz)
Lower TDP (45W vs 65W)
Intel Core i5 12400's Advantages
Released 9 months late
Higher specification of memory (DDR5-4800 vs DDR4-3200)
Larger memory bandwidth (76.8GB/s vs 51.2GB/s)
Newer PCIe version (5.0 vs 3.0)
Larger L3 cache size (18MB vs 16MB)