Well there’s an episode in ds9 where a replicator is modified into a teleporter, so in the star trek universe they’re very similar. Replicators reconstitute matter from waste material, and seems to me to be far more likely in the realm of scientific possibility.