The resolution of your dilemma comes by making them both free. THere’s no putting the genie back in the bottle.
There is no eliminating them, for sure. Prostitution is as old as the hills. Pornography goes back to ancient Egypt at least. But they don’t have to be encouraged by government. No one is going to suffer particularly if they are discouraged, either—unless they are organizing and profiting from it.