It’s all in the message.
Same as their “thanks but no thanks” letter.
‘Thank you very much for the opportunity. However I have decided to pursue....’
‘ Should another opportunity arise in the future’
Use the names of the people that interviewed you.
To me that would read as you’ve gotten a better offer but I’ll still send you an email next time around.
Nothing wrong with taking a better opportunity.