Entertainment comes before real life sense and in universe sense;
That's just it, though -- it doesn't have to be a choice between the two. It's possible to have both entertainment value and good science, as proven by the success of films like
The Martian and
Arrival (and
Interstellar, mostly).
I mean,
Star Trek was one of the first SFTV series whose creators made an effort to consult with scientists and engineers to get the science at least partially right; the only previous ones had been a couple of kids' shows in the '50s. It's because of that research that the
Enterprise wasn't just another flying saucer or cigar-shaped rocketship like essentially every film/TV spaceship preceding it. It's because of that research that the
Enterprise has warp drive instead of just rocketing between the stars in total ignorance of the speed of light or interstellar distances, and that it's powered by matter/antimatter reaction instead of some imaginary fuel source. It's the reason the ship has a deflector dish and doesn't have flames shooting out the back. So don't underestimate the importance of scientific literacy to
Star Trek. It wouldn't be the show we know if Roddenberry had been as lazy and careless about science as most other SFTV producers.
Being a good creator is not about putting effort into only one part of a creation and being lazy and sloppy with the rest. It's about putting your best possible effort into every aspect of the work, even the details the audience will hardly notice. Because
somebody in the audience will notice, and will be distracted or annoyed if it doesn't work, even if most others overlook it. And because taking maximum care with the work, not being lazy and shrugging anything off as unimportant, will make the overall work as good as it can be.