It’s the opposite actually, in terms of implementation Zram is a hack, but it does have it’s use case when your system load doesn’t far exceed your total RAM, on the other hand swap is tightly integrated into the system and it’s on it’s way to implement “Virtual Swap” which is effectively Zram but not a hack, making it like a hundred times better, see This blogpost for a detailed explanation
It’s the opposite actually, in terms of implementation Zram is a hack, but it does have it’s use case when your system load doesn’t far exceed your total RAM, on the other hand swap is tightly integrated into the system and it’s on it’s way to implement “Virtual Swap” which is effectively Zram but not a hack, making it like a hundred times better, see This blogpost for a detailed explanation