It's a slightly better comparison, however Ryzen 6000 is on N6 (which is an optimized N7 process), whereas M1 Max is on N5. N5 is considerably denser than N6.
AMD's next round of APUs on 5 nm will offer a better die area comparison.
That would be the case if 5nm didn't refer to a random feature of a reference planar transistor that is only used to chronologically name the process according to its mathematically equivalent density..