I am pretty sure that this question, or one like it has been asked before.
This was the last time.
There may even be older examples that you can look for.
Normally the order of preference is Health Defense then Offense. So unless I am mistaken,switching from defense to offense ,ought to mean you are weaker by doing so,and might not achieve your objective of more soul shards
You could test your theory against clan members.
Sorry, I rectified it..
Unfortunately,not many people responded,but that's often a general problem here, so I hope you do better.
Perhaps it's a secret that is not for sharing,especially on here.
As mentioned in the correct link, you do have other options, also your success or failure with depend on what else your opposition has done, and what troops you are against, but you wont know that unless you scout first.
Each class of troop has increased strengths against two others, and weaknesses against the other too, presumably,which I don't think I considered before, is if you come up against only the kind of troop you yourself use,there is no advantage for or against,so it would be based just on numbers,except for the other factors I hinted at.On you tube there are some interesting videos on the best way to play, some are good,some are poor,and some ought to be checked for accuracy and some updated to reflect the game as it is now, not as it was.
I have personally used , Health, Offense, then Defense. This has worked well for all three of my towns. I have not checked which would be better off or def. Over the years I have had good success. More often than not like said above, it depends on your opponent. Best option prepare your troops best you can, spy first and know your opponent.
There is a kind of hierarchy in offense/defense/health, however I found no difference at all between offense/defense/health. However depending on how they call the individual action, they get higher on the ladder. Everything increasing 'total ...'is the lowest on the ladder. Next up is likely your weapon choice. Then you have '...during defense/attack' etc. There are so many but I hope you get the picture. The more rare or complicated the action, the more power it has.
Gem choices are a matter of personal preference and fighting playstyle, as well as the type of events and defenses you face. Using a shorts Offense gem will increase your damage output and potentially help you get more kills and points, but it will also make you more vulnerable to enemy retaliation. On the other hand, a shorts will reduce the damage you take, allowing you to potentially survive longer and defend more effectively, but it will also reduce your damage output.