Comparative advantage is just a model, as you rightly point out, I'm sure in any real world instance the situation is much more complicated.
However, its important to know that many economists believe its the foundational model on which further elaboration of trade policy should be built. That's why it's worth understanding.