Both Star Wars and Star Trek are pretty stupid, in different ways.
Some of it comes down to ridiculous technology invented (by writers) for plot purposes which no-one had bothered to think through the implications of. Take transporters - invented because the original series was so cheap they couldn't afford to build a shuttlecraft model, so it allowed people to just 'teleport' from one studio set to another. But then they had to spend most of the rest of the series inventing reasons why the transporters weren't working, because they made escapes from danger too easy and convenient for the characters. By Next Generation they had realised it meant your entire society would be different and they made a nod towards that with 'replicators' and 'holodecks', but they still never really got to grips with it. Surely it means you can just duplicate people at will? Oh, they tried some bullshit explanation about souls, but it doesn't wash. And even if you can't duplicate people, you could still have the entire Federation Navy staffed by replicas of Lt Cdr Data. Oh dear. Don't even get me started on the Prime Directive, or why Federation military forces are so rubbish.
Star Wars is quite visually impressive, but complete nonsense if you stop to think about any of it for more than a few seconds. Look at the 'Senate' of the Republic - it's hard enough trying to have a debate in a legislature of several hundred people. In one of several thousands or tens of thousands it would just be impossible. No wonder the Republic collapsed! Or how about tanks that WALK very slowly towards the enemy (when everything else in the universe flies), or fighters that have to fly along a long trench in the Death Star as if they were on a planet (when the Death Star is a spaceship and only needs to gently burn its own thrusters for the Empire to be scraping Luke and his friends off the walls). Of course, that last bit is because Lucas stole the ending of Star Wars frame by frame from '633 Squadron', just like he stole most of the plot from Kurosawa's 'Hidden Fortress'.
Then there are the plot holes. So Obiwan Kenobi decided to hide Anakin's son on Anakin's own homeworld, living with his own stepbrother??? Great hiding place! No wonder it took Darth Vader years to find him. And how come R2D2 and C3P0 don't remember Tattooine or Kenobi in Star Wars (IV) if they've been there before?
At least B5 was much more coherent - because it was the vision of a single writer throughout and was written with a beginning, middle and end in mind from the very start. Mind you, Star Wars has the same writer throughout and it still doesn't hang together coherently...
Red Dwarf is absolute top entertainment, of course, and often makes a lot more sense than any 'serious' SF series.