AMD Ryzen 5 8640U 's Advantages
Lower TDP (15W vs 20W)
Apple M4 's Advantages
Better graphics card performance
Higher specification of memory (LPDDR5X-7500 vs LPDDR5x-7500)
Larger memory bandwidth (120GB/s vs 89.6GB/s)
Higher base frequency (4.05GHz vs 3.5GHz)