The formula picks whichever damage formula will get the most damage. If a resistant enemy has a high enough Block Strength that the Thunder damage would be better than the Neutral damage, it takes the Thunder damage, and vice versa.
awesome!