They aren't even competing. SW is a space opera action film series while ST is more interested in showing a version of the future. And exploring more philosophical questions in a campy way even though this sometimes falls flat. 
The only thing they have in common is that they take place in space and have star in their name.