manga is more consistent quality wise overall but its a case to case thing
kazekage rescue arc is absolutely awful in the anime, but the anime handles Hinata's sacrifice, Shikamaru grieving much better in contrast,but then again sakura's character is assassinated in the anime.
its kinda hard to compare them because of how different they are as mediums, outside of maybe grading how good of an adaption the anime is, which is only useful to contrast and doesnt say much about it as a piece of work for people who only experience the anime, which is the majority of how people experienced naruto.
in terms of individually, id say they both pretty great. the anime in particularly alongside Bleach are prob some of the most important and influential anime of the 21st century, pioneering and popularizing industry wide changes that would be adopted not only in other anime but animated films, it also cultivated and birthed some of the greatest animators who's influence can be felt in a lot of the high quality modern seasonal stuff.
but for my money, if you care purely about the story then ill always suggest going with the source material.