Apple M2 's Advantages
Better graphics card performance
Higher specification of memory (6400 vs 5200)
Larger memory bandwidth (102.4GB/s vs 83.2GB/s)
Higher base frequency (3.5GHz vs 2.4GHz)
Lower TDP (15W vs 55W)
AMD Ryzen 9 7940HX 's Advantages
Released 1 years and 7 months late
Newer PCIe version (5.0 vs 4.0)