It is useful, unless you have an absolute crapton of memory, several times what you actually need. The swap is trivial to encrypt if you're paranoid (the key doesn't need to be persisted and can be generated from /dev/urandom on each boot).
https://chrisdown.name/2019/07/18/linux-memory-management-at...
https://haydenjames.io/linux-performance-almost-always-add-s...