This is like asking "Who would win in a fight, a submarine or a jet?"
The two combat styles aren't comparable. Star Trek is based on naval battles, in fact, IMHO, the very best OG Trek episode, "Balance of Terror" was based on a WWII set submarine combat novel and movie called "The Enemy Below":
https://en.wikipedia.org/wiki/The_Enemy_Below_(novel)
https://en.wikipedia.org/wiki/The_Enemy_Below
Lucas specifically wanted Star Wars to emulate air combat and dogfights.
