Ditto can transform into a thing or Pokemon.
Ditto vs. Ditto.
Ditto would use Transform, the other one would as well.
This would be repeated until both run out of PP for Transform.
Then they'll start to use struggle. Then, based on Crit chance, attack stat, etc. one of them will faint.