I recommend
start here to understand GPU options on the 5,1.
If you just want to know the "simplest" option find a used Sapphire RX 580 Pulse.
If you want native OS then Mojave 10.14.6 is the latest. If you are willing to install OpenCore (relatively easy to install using OCLP) then Monterey 12.7.1 is stable, many users are successfully running Ventura, and Sonoma is experimental but improving.