Few thoughts on Ditto in SwSh Metagame
Ditto is a phenomenal Pokemon in this metagame due to its capability of revenge killing almost anything especially with nearly everything boosting their stats freely with Dynamax around, but I believe the existence of Dynamax hinders its potential little bit. As I observed, there are certain counterplays to Ditto. Those counterplays can be effective in different circumstances, I'll just put down the ones that I experienced on the ladder/tested myself.
1) Switch Out before Ditto comes in.
If you are running an offensive Dynamax mon that boosts its offensive stats, it is possible that the Ditto user may wait for your Dynamax to end, then switch in to use Dynamax on its own. This leads to my idea of using 1-2 turns of Dynamax then switching off. Nothing really forces you to use all three turns of your Dynamax, so if your opponent is indeed greedy, switch out after turn 2. The benefits will be much much better. That way your best case scenario is KO on 2 Pokemon and preventing a potential Ditto revenge sweep.
2) Stay in and take the hit.
Dynamax gives your Pokemon x2 HP. This means that if your HP is high enough, you may consider the option of trading your Dynamax with Ditto. So, as long as you are not overly boosted, you have chances to take a hit from Ditto, and effectively OHKO it back, granted they don't Dynamax. Few calcs regarding this;
Excadrill Interactions
252 Atk Excadrill Earthquake vs. 4 HP / 0 Def Excadrill through Reflect: 255-300 (70.4 - 82.8%) -- guaranteed 2HKO
This calc shows you always live an Earthquake from Ditto at full HP. Reflect is used since it can be used as a substitute for Dynamax HP in calcs.
252 Atk Life Orb Excadrill Earthquake vs. 4 HP / 0 Def Excadrill: 663-780 (183.1 - 215.4%) -- guaranteed OHKO
This calc is just your Excadrill hitting on Ditto.
252 Atk Life Orb Excadrill Earthquake vs. +2 4 HP / 0 Def Excadrill: 330-393 (91.1 - 108.5%) -- 43.8% chance to OHKO
This calc is assuming that your Excadrill has used Max Steelsurge twice which results in +2 Defence, then Ditto came in to copy stats. You can still see that the counterplay exists.
Gyarados Interactions
+2 252 Atk Gyarados Bounce vs. 0 HP / 0 Def Gyarados through Reflect: 250-295 (75.5 - 89.1%) -- guaranteed 2HKO
This calc assumes that Ditto came in on a +2 Attack Dynamax Gyarados (Moxie). As you can see you can live the hit to effectively remove Ditto from the game.
In return, you don't even need any attack boosts to remove a Ditto from the game. The calc below shows the Max Airstream damage on a Ditto.
252 Atk Life Orb Gyarados Bounce vs. 0 HP / 0 Def Gyarados: 328-386 (99 - 116.6%) -- 93.8% chance to OHKO
I gave my examples based on what I personally experienced. People acknowledged Excadrill and Gyarados to be powerful Dynamax users, so posting relevant calcs about my assumption hopefully will help you with deciding if trading Dynamax with Ditto is a considerable option or not. Pretty sure we can apply the logic here in many 1 on 1 circumstance and see that many more Dynamaxed Pokemon can take a hit from Ditto and KO it in return.
But as I stated above, this is only if they don't Dynamax on the turn they switch in, while your Dynamax is still active. What if they Dynamax? Does any counterplay exist? Well, as we all know Ditto is heavily reliant on its Choice Scarf item to effectively revenge kill things. And it is an in-game mechanic that completely nullifies the effects of Choice items under Dynamax, both the boosts and the choice-lock status. This simply means that if Ditto chooses to Dynamax vs you, then it will be a Speed Tie at all times and I find this quite unreliable. Calcs will be quite similar, where you actually may deal more damage because of your abilities and items, such as Life Orb, which points out that Ditto is at a disadvantage facing against a Dynamax.