Why are dragons so dumb in CoC?
Dragons are supposed to be magic, quite intelligent creatures, which hate enemies and love gold.
They should select targets in a more intelligent way than giants. They should select first anything that hurts them (archer tower, wizard tower, air defense...), then gold, then the rest (cannons, mortars, elixir...).

