Popularity is always subjective, but here's a common take. When Dragon Ball Z first aired, it was a massive hit and helped define an entire generation of anime fans. That said, some viewers feel its power scaling gets a bit inconsistent.
A classic example people point to: Vegeta charges up for an entire episode to unleash a devastating attack that leaves Cell half-destroyed — only for the Cell Juniors to shrug off a similar blast without a scratch the next time around. Moments like that can make the fights feel less satisfying to some fans.
Naruto, on the other hand, built a huge global following with its deep storylines and character development. So while both are legends in their own right, it's fair to say Naruto has earned a strong claim to being the more popular of the two today.