"I pledge allegiance to the the Flag of the United States..."
Unless you think the flag is a god, you're not pledging to a god, you're pledging to a piece of fabric, or to the design printed on that fabric. Which, honestly, is a lot weirder. How can one have allegiance to a flag? What about the opposite, is it possible to be disloyal to a flag?