Would a Federation warship like the Defiant out gun a Star Wars Star Destroyer? Who has a bigger armada? Who has the tactical advantage? Don’t forget that The Federation includes the Klingons, who love warfare and have fast, agile, heavily armed ships, with cloaking devices, and the Vulcans with superior logic and tactical planning.
I believe some of what you say is touched on in some of the newer Star Wars shows, but to avoid any spoilers I’ll just leave this comment very vague like this.