What's the difference between ice dancing and pairs skating?

Both Olympic figure skating events involve two skaters competing together, but that's where the similarities end.