Windows has memory compression.
Apple Silicon does have hardware memory compression, which is considerably faster (and does not block the CPU). This does give you more effective RAM for normal multi-tasking use, but not if you need large working size (e.g. many professional workloads with random data access).