Reality is more nuanced.
Under regulation, drugs and prostitution are not intrinsically bad things.
Drugs are cool, but easily addictive / bad in excess.
I don't see how sex is bad in any amount unless it interferes with daily life or health.
Other places have hour long marriages to get around the problem.
Intent and purpose are huge parts of many laws. The money flows in very different directions. Both actors are being payed and contribute to producing a sincere commercial good. No one is paying to have sex at all.
There are enough laws around documentation and licencing that no one's out there running a brothel calling it a studio.
I would argue that all sex workers deserve respect, in front of judges or on HN, regardless of whether it's prostitution or surrogation.