"Right" rarely matters in geopolitics.
What matters is who opposes a course of action, and how far they're willing to go in their opposition.
Is China or the UK going to insist that former Honduran president Juan Orlando Hernández be prosecuted on drug crimes? If not, then the US is realpolitik free to do what it wants.
Similarly with Maduro. Who's going to support him? And how far are they prepared to go?
Pardoning a different drug dealer can be a way to show Maduro that they were serious about the offer, that they really would have gone easy on him.
Maduro is not a drug dealer and even if it was not directing all the limited resources of its government to stop the drug trade we are talking about allocation of resources which should have happened in order to put Americans Interests first whereas Venezuela has so many other serious problems.
Also even if all that was true we are talking about cocaine, the party (and somewhat productivity) drug.
The fentanyl is produced 10,000 miles away from Venezuela, in CHYNA which used to be a great talking point in 2016 but of course nothing ended up happening
Getting rid of a head of state that brings your primary competitors (china) influence to your doorstep is not head scratching. Just try to think in real-world terms