"When Planets Collide"
The Enterprise discovers two worlds hurtling towards each other, with no way to stop them. As they investigate further, they find that destruction of either world is impossible, as both are inhabited.