Is one more beneficial than the other?
Whenever is most suitable and sustainable for you.
Start with IF 16:8 and when you feel comfortable, increase your ratio.
Also adequate electrolytes are a massive part of prolonged fasting, have a look into that as well.
Good luck!