I’m not really sure (I’ve never tried to run linux on a mac except once on a 2013 (or 2012 or 2011) 13" macbook pro (I tried ubuntu and debian stable) but the keyboard was playing up and the trackpad didn’t work while it was charging (all hardware problems, they happened in macos as well)(this was in 2021 or 2022)), but given the age of your device any modern distros should be fine.
I’m not really sure (I’ve never tried to run linux on a mac except once on a 2013 (or 2012 or 2011) 13" macbook pro (I tried ubuntu and debian stable) but the keyboard was playing up and the trackpad didn’t work while it was charging (all hardware problems, they happened in macos as well)(this was in 2021 or 2022)), but given the age of your device any modern distros should be fine.