It’s neither.
I disagree. It’s both. Star Wars is a lot of things - fantasy, sci-fi, western, romance, swashbuckling, war film. The argument, I think, is what genre doesn’t it primarily operate in. At the end of the day, it’s a fairy tale. It’s a fantastical myth. The other things serve to make up that whole.