Star Wars in many ways is it’s own genre or sub genre. I don’t think there are really any hard rules about such things, which is why the Science Fiction vs. Sci-Fi debate has gone on for decades.
Some movies straddle the genres. Is Alien a horror or a SF film?