You Shall Not Have Any Other Gods Before Me
Starship captains gun down false religions with more vigor than Old Testament prophets. Rarely do they travel more than a few light years before they come across a civilization that worships…well, almost anything, from heavy-duty mainframes to light and frothy drinks.
In "The Apple" from the original "Star Trek" series, Captain James Kirk and his crew encounter an idyllic world whose ageless inhabitants feed a computer named Vaal. It seems like a dandy setup to Mr. Spock, but Dr. McCoy argues that it can't be healthy to have all your needs met by a "hunk of tin" (perhaps shortly after polishing off a meal created by the Enterprise's replicator). Eventually, the Enterprise is forced to zap Vaal with its phasers, sending the binary being to an ignoble, smoky end.
The natives are seriously bummed, but Kirk cheers them up by telling them they can now work and struggle and get sick and die just like everyone else. Yay!