Suppose there were a technology X which was going to be invented eventually. Suppose also that it's a highly unethical technology, for some definition of unethical.
Is it therefore unethical to create X?
Note: The constraint is that X is inevitable. The only question is who creates it first. And in that context, isn't it at least possible to argue from multiple axes that you should help to create it? The limit case of this argument would be "It's your duty to the society you live in to ensure it has the competitive advantage, not some other society."
A less-hostile way to phrase that would be "The first company to invent a technology can then try to enforce ethics onto that technology."
That is, if you invent something, it's easier to dictate how it's used than if you didn't.
Hence, paradoxically as it may seem, the logical conclusion would seem to be that you should work as hard as you can to invent whatever unethical technology you're worried about -- in the hopes that you can minimize the damage later.
If it seems like a technology can't really be controlled (e.g. nuclear weapons), I counter with this: Bitcoin was the implementation of a set of ideas. The exact implementation could have been very different. It could have been inflationary rather than deflationary, for example. The precise choices were very important, because Bitcoin has huge first-mover advantages. And that is often true of the first X to be invented.
So, what's the answer? Do we work as hard as we can to invent unethical technologies in order to mitigate their effects, or do we try to suppress or discourage the invention of new technology knowing that some less-"ethical" society will get there first?
Or is that a false dichotomy? I'm fascinated by the possible answers.