Comparative advantage is actually even more subtle than that. Even if we're both better at photos than widgets, it's still beneficial for me to produce the one I'm better at relative to you (say photos), and for you to produce widgets. Then we can trade with each other and both gain from trade.