I don’t get why people have to watch YouTube tutorials… they are mostly unhelpful, as you the viewer are mostly passive, and the process depends on a good active internet connection to stream the Video.
Second most good written tutorials have the important bits… the bits you actually need to type in… available as copy/paste.
So if you follow the Written tutorial you will almost invariably achieve the result you want.
You might have got mixed information between swapfile and zram-generator (that by the way, uses /dev/zram and probably is the easiest way to enable swap on your system just by installing the package), but on the other hand, the wiki was pointed out is quite straight forward and requires NO INTERPRETATION. You can copy and paste the set of commands and end up having it working.
well a system with 16GB RAM should be the state-ot-the-art nowadays, even with linux (except using some special derivates).
and 32GB RAM are very comfortable and the prices are still affordable (who knows what the inflation will bring in future)