Both franchises are apt to hand-wave science, so who knows? How does a warp drive compare to a hyperdrive? Blasters to phasers? Thermo detonators to photon torpedoes? Star Wars doesn’t seem to have matter/energy manipulation like replicators and transporters, though, so Trek has an edge there.