If you want to get good at something, do it. If you want to understand something, teach it.
And if you want to master something, do both.
There are brilliant practitioners who have no idea how their craft works, or why they’re good at it. And there are fantastic teachers who couldn’t make a living as practitioners.
Strive to understand your thing well enough to teach it, and to practice it well enough to be a professional.
Each aspect will enhance the other.