With an SSD + 8GB upgrade (both are cheap) These can be used in 3 differnet ways besides running macOS
Server
Linux
Windows using BOOTCAMP (all the way to Win11 is likely possible). BOOTCAMP Probably default provide drivers for Win7. After installing Win7, install WIn10, and then Win11 with TPM and Security Boot bypass.