Delusions are often functional. A mother's opinions about her children's beauty, intelligence, goodness, et cetera ad nauseam, keep her from drowning them at birth.
The lightning-bug is brilliant, but he hasn't any mind; He stumbles through existence with his headlight on behind.