After running Xubuntu and Fedora on a MacBook for several months, I don't recommend it; not all drivers are available and sleep functionality is finicky. Running Windows on a MacBook was even worse in terms of graphics card support. Running linux on a cheap thinkpad will perform better imo.
Alternativelym you can also run macOS on linux. I had luck with Docker-OSX