Ryzen 5800u - on TSMC 5nm - might be better than M1, let's not forget the new generation of process that Apple has paid for.
Having said that, the 5800U might not be too far off the M1 in raw performance even on the older process. AMD's improvements on the same node for Zen3 are pretty good!
AMD 5800U (7nm), single-core 1421, multi-core 6450
Apple M1 (5nm), single-core 1613, multi-core 6489
https://browser.geekbench.com/v5/cpu/compare/5021403?baselin...
Note that a large part of the M1 multi-core score is due to advantages in Machine Learning and AES-XTS. Without those it would be behind AMD's processor and I don't see ML or AES being relevant for most users.
Makes me wonder what will be AMD's 5nm performance.
You picked one of the odd outliers for the M1 (background activity running at the same time as the benchmark?).