Not having quite enough RAM is the exact scenario when swap on ZRAM is most useful. Assuming the data you have in RAM is compressible it lets you use a few extra gigabytes before hitting disk swap or OOM (depending on if you have a disk swap device configured in addition to ZRAM).
Zswap is somewhat similar and might also work well for you, it uses disk swap but with a compressed cache in RAM.