I had that debate with a Trekker friend of mine (much to the amusement of his wife). He posited that it would be a no-brainer for the Federation to dominate, by simply beaming boarding teams to the bridges of the Imperial ships.
As soon as they Beamed on board, the Storm Troopers would kick their asses. Those little toy, ‘label maker’ looking Phaser things(or whatever they’re called) probably wouldn’t penetrate armor, and they would be mowed down by the Laser Carbines by the Storm Troopers anyway... lol