The original Star Wars is the classic example of that phenomenon.
It often happens in music too, when artists with different sensibilities somehow “clash” and the material they produce together (which they’ll inevitably think of as “full of compromises” etc etc) is superior to anything they would produce individually, before or after.