How are the film scores apples & oranges?
Goldsmith’s score for the Motion Picture is great (and Goldsmith himself is a legend for very good reason) but a whole lot of Star Trek music is just… unremarkable. In some instances it’s actually bad. Especially once you start factoring in the TV shows. I don’t know that I can point to a single bad Star Wars score, though, and many of both series’ scores are trying to do the same thing, using the same musical language in a lot of instances.
I’m not saying there isn’t some timeless Star Trek music. But I can’t see an argument being made for Star Trek having a better musical component.