Lets say that RAM in the M1 cpu's does more than in other chips. But there is a limit to this truth.
While, for example, an 8Gb M1 might not slow down as fast as an 8Gb Intel based mac, it will still slow down if you open a ton of stuff.
On my previous work PC (a 16gb Macbook Pro 16'', so Intel based), I would stress out the RAM daily and the PC slowed down (multiple Xcode windows open + Docker + other things). Similar workload on my current M1 16Gb 13'' Pro does not do the same effect. But it does slow down a bit if I'm not careful and open a million things.
So, if I had 32Gb, I know that nothing I do on a daily basis would fill the RAM to a point it would affect performance. I would have no use for 64Gb tho, that's a waste.