> For one, it contradicts the dogma that more trade is strictly beneficial.
Ricardo's original idea was applicable with a narrow set of assumptions/conditions and didn't have much to say about who'd end up with the greater net wealth. I'm not sure how/why it was turned into a magical improve-any-economy law of nature.