So annoying, soooo annoying, everyone has the same copy and paste answer for EVERYTHING.
"Google doesn't penalize affiliate links—it penalizes low-value affiliate content. If your content is original, helpful, and demonstrates real experience, affiliate links are generally not an issue."
"There is no need to obfuscate affiliate links. It’s important to write quality useful content and ensure a quality user experience."
"In the end, quality, credibility, and trust weigh way more for rankings than that link formatting ever will."
UUGGGGHHHHHHHHHHHHH
Here is an honest take on your question:
Should you obfuscate them? It is a good practice. Not because of the rankings (well, also. I mean, Google's spam detection is now more advanced than it ever was, why would a well-known spammy casino link not hurt your page, even in the slightest way possible?) but because of competition. It takes a second for a competitor to take your affiliate link, run it through Ahrefs and see your whole network of pages. This could hurt you in many ways, one for example could be direct DMCA abuse, etc...