Apple M4 's Advantages
Larger memory bandwidth (120GB/s vs 89.6GB/s)
Higher base frequency (4.41GHz vs 3.3GHz)
More modern manufacturing process (3nm vs 4nm)
Lower TDP (22W vs 30W)
AMD Ryzen 7 PRO 8840HS 's Advantages
Higher specification of memory (7500 vs 7500)
Newer PCIe version (4 vs 4.0)