I can envision a reasonable case that Star Trek is space fantasy, sure. But I think it's significantly overstating things to say that Trek is just as much space fantasy as Star Wars. There's nothing in Star Trek remotely as fantastical as the Force and the users thereof.
>There's nothing in Star Trek remotely as fantastical as the Force and the users thereof.
A lot of things in Trek are a lot more fantastic than the Force. The second episode of the original series has someone whose powers far exceed any Jedi not named Skywalker or Palpatine. Plenty of aliens are telepaths. And then the Q came along. The Douwd are apparently an alien race made of eldritch music that can erase entire species with their mind.
Honestly the Force is far more grounded in comparison. At least it has a structure and some rules. In Star Trek you could find an alien species that literally plays billiards with planets and it's never explained or referenced again. That just a thing that sometimes happens. Oh yeah and Wesley Crusher ascended to a higher plane of existence.
But let's move on to cosmology. A weird barrier at the center of the galaxy where a space god is imprisoned like some JRPG final boss. Anomalies in space that create time loops or fulfill your deepest desires. Whatever subspace is supposed to be - both a "layer under normal space" that's used for communication and also arbitrarily fixes the plot and also sometimes monsters come out of it that steal your organs.
Or technology. Set "Threshold" aside. The transporter can create evil clones of you or turn you into a child. The holodeck can create sentient life on command. The Enterprise got knocked up and had a baby one time. How does the universal translator work? Look up the only canonical explanation in TOS, it's basically magic.