If you want to get super accurate with how their tech works the Federation would technically win since it would be impossible for the Empire to leave whatever star system they invaded from, since there would be no hyperspace routes/lanes mapped out for them in our galaxy and their ships would slam into stuff when trying to go to other star systems. ;)
Bingo. SW ships require the use of an astrodroid OR the Force when traveling at hyperspeed to avoid the ship and pilot smashing into planets, asteroids, etc at relativistic speeds. ST ships don't have that problem. Sensors are good enough to travel at warp through uncharted space.
Disregarding that tech wise it's really hard to say which is better.
It aint. Trek ships (generally) have two different ways to attack you- ship mounted phaser banks, and photon torpedoes.
Ship mounted phasers are the successors to a more primitive line of weapons called phaser cannons. Phaser cannons theoretically had higher energy output, but struggled to do damage once deflector shields became commonplace. Phaser arrays are lower output but designed to cut through shields like butter. The phaser banks introduced in TNG as a response to the borg rapidly cycle through frequencies to be even better at it.
Photon torpedoes on the other hand are just straight damage dealers. HOW much damage do they do? We can reference three separate occasions that are fairly definitive. Two of these happen in Ds9 and Discovery, where a volley of standard photon torpedoes *glass a planet* and turn the surface to slag, obliterating all life. To make this even worse, the starship that did this in Discovery was using TOS era technology that predated TNG era weaponry by about 70 years. If you have weaponry as powerful as photon torpedoes (and again, those were standard strength and/or ancient tech) you don't need the death star. it's redundant.
We can also reference the quantum torpedoes that Voyager came back with in the finale THAT series. Voyager straight up *one shot* borg cubes with those, and those things were totally unblockable because they went out of phase with spacetime immediately after launch.
how big is a borg cube?
Insanely big. It's not as *long* as the Executor (which itself was a *super sized* star destroyer) but it's easily just as massive (as it's a cube of equal dimensions on all sides) and totally dwarfs a standard imperial class star destroyer.
Voyager could have ended the Empire (as it stood in Jedi) entirely by itself with the armament it had at the conclusion of that series.