You can't install Windows 11 on any machine with less than 4GB of RAM, but there's a whole slew of Linux distros that not only run comfortably within those constraints, but they load entirely into memory and keep running after you've removed the USB drive or CD they booted from.