Star Trek: The Next Generation had a similar episode called “The Masterpiece Society”. An isolated colony was formed 200 years prior to create a perfect society using genetic engineering and selective breeding, but a fragment of a neutron star is heading towards them and threatens to destroy their colony.
They reluctantly allow Enterprise leaders to visit in order to help their brilliant scientists find a way to deflect the star fragment. They collectively find a way to save the colony, but the exposure to the outsiders has stirred discontent among some of the colonists, who now want to leave the perfectly balanced and interconnected society. The final irony is that the solution to dealing with the star fragment was found in the visor technology that allows a blind engineer on the Enterprise to “see”. That technology wasn’t imagined by the colonists because nobody is ever born blind due to their genetic engineering.
The Captain of the Enterprise mused at the end that, while they saved the colonists from immediate destruction, the cultural contamination resulting from their interaction may have still doomed it.