WSL is literally the Linux kernel running in a VM, so WSL is actually closer.
But you can have a Linux kernel running in a VM on macOS as well, and while it doesn't have something like WSL built-in, it provides enough foundation for others to build it: https://lima-vm.io/docs/
But you can have a Linux kernel running in a VM on macOS as well, and while it doesn't have something like WSL built-in, it provides enough foundation for others to build it: https://lima-vm.io/docs/