Are Agile coaches making SMs redundant?

I get that coaches work at a different level, helping with org-wide transformation and all that jazz. But sometimes it feels like there's overlap, especially when coaches start getting involved in team-level stuff.

As someone who's seen both roles in action, I'm curious about your experiences. How do you handle the dynamics between Scrum Masters and Agile Coaches?