Roddenberry would have hated it but yeah. What you see in DS9 is the ideals of the Federation clashing with reality. In TOS and often in TNG (the first two seasons primarily) you'll get some cardboard cutout stand in of a position or view and it just gets hand waved away because we solved all...