I voted for Star Trek.
But if we look at the proportion of quality “canonical” output, we have:
Star Wars - 2 very good and 1 good original movies, 2 decent and 1 good prequel movie. The last 4 movies never quite measured up to the first two. But overall, everything was decent.
Star Trek: The original series had 2 good seasons and a very uneven third season. The Next Generation had about 4 (our of 7) good seasons. Deep Space 9 had maybe 4-5 good years. Voyager and Enterprise had maybe 1 good year between them (out of 11 total?). And then we have maybe 4 out of about 10 movies that are good or very good, with some real clunkers.
To use a different analogy - Star Trek is kind of like Bob Dylan - long career, some great hits and true brilliance, but a whole lot of misses where he’s basically doing it for the money. Star Wars is more like the Beatles - shorter career, brilliant early-to-mid period, with more duds at the end. (We won’t draw any of the post-Beatle careers into the analogy).