Suppose $X$ is compact Hausdorff and has infinitely many components. It seems there should be a way to select at least one point from each component so the resulting set is totally disconnected and closed. But it seems harder than I thought.
Brute force approach: Let $C$ denote the family of components of $X$. For each $c \in C$ choose a point $x(c) \in c$. Then the set $D = \{x(c): c \in C \}$ has only one point from each component. But it might not be closed. So redefine $D$ as the closure of $\{x(c): c \in C \}$. Then $D$ is closed but might not be totally disconnected.
Any tips?
Consider $$X=A\cup B$$ with $$A=\left\lbrace\left(\frac1n,\sin n\right),n\in\Bbb N\right\rbrace\qquad \text{and} \qquad B=\{0\}\times\left[-1,1\right]$$
This is compact Hausdorff, but any closed subset meeting once each component would have to contain the whole of $A$ and therefore $B$ as well.