To imply that Star Wars did it first and that ST just copied it is ignorant.
It helps a lot if you pretend that three thousand other films produced between Star Wars and Star Trek don't share similarities...with the thousands of films made before Star Wars.
We've gone down this rabbit hole about SW/ST, BTW, because the naysayers have momentarily abandoned the "it sucks/it failed" drumbeat as unsuccessful. If it's not resurrected here shortly, it will be in yet another new topic soon.