In principle, it is quite clear that the more RAM, especially for video editing, the better. But despite 32 Gbyte, my experience is that many programmes don't really work better or faster even then.
But if you use Adobe Premiere, make sure to create proxy files. This will finally make it possible to edit 4k smoothly. It's a real "wow" experience, like "Well, if I had known that before...".
But I still recommend the 32 GB RAM, because it's a huge advantage for all programmes.
https://www.youtube.com/watch