The OP is confusing Science Fiction with fact.
I have always been a great Science Fiction fan, since I read the Time Machine by HG Wells as a 12 year old girl. I still read and watch Sci Fi, although the quality mostly leaves something wanting, both in ideas, and the writing, since all the great Sci Fi masters have died off.
But, never did I worry for one second about whether it was real. If you read older Sci Fi, you will find a lot of predictions that never came to past. Star Trek was a very interesting proposition, though. Did you know, for example, that Geeks watching OST, seeing the shadowy screen that Spock kept starring into to get his information, thought about developing personal computers, and actually worked on them. People like Bill Gates and Steve Jobs.
The doors that sprang open whenever someone walked in front of them? Something we take for granted? It was two men on ropes on the other side of the door, opening them up when someone walked up to them. And yet, some Geek saw it, somehow applied lasers to the idea, and now we have doors that sense us and then spring open.
Not so much with warp speed, or the teleporter. True, a molecule has been teleported a few feet. But the interesting thing is that the machine actually tears the molecule apart to figure out the structure, transfers that information to the other side, which rebuilds it. I've read a number of Sci Fi stories which deal with this reality. And more than one copy appearing. As for being killed so I can travel faster, not so much!
So, yes, some things that are totally fiction have been made real, through really clever people. Others, and that includes an android like Data, simply cannot happen.
On a final note, remember that Data, and his twin brother Lore were the only androids, created by Dr. Noonien Soong, even in that distance future! And when Data tried to create Lal, his daughter, she did not survive, something about a
cascade failure in her positronic brain.
Instead of worrying about whether a fictional character has a soul, why not concentrate on studying the Bible, or witnessing, or volunteering a local shelter or food bank. Those are things that Jesus tells us to do, better to do the things we know God expects than worrying about the ontological status of an imaginary android.