A recent comment under this old answer claims there's some issue with the following proof.
Prop. A compact metric space $(M,d)$ is sequentially compact.
The "proof":
Suppose a sequence $(x_n)\subset M$ has no convergent subsequence in a compact metric space $M$. Then, for every $y\in M$, there is an open neighborhood $U_y\ni y$ s.t. the set $\{n\in\mathbb{N}: x_n\in U_y\}$ is finite. Then the collection $\{U_y: y\in M\}$ is an open cover of $M$. By compactness, it admits a finite subcover $\{U_{y_1},\cdots, U_{y_k}\}$. But then the index set $\{n\in \mathbb{N}: x_n\in M\}=\cup_{i=1}^k\{n\in \mathbb{N}: x_n\in U_{y_i}\}$ is a finite set. Contradiction.
The comment claims nothing in the above proof uses the fact $M$ is a metric space. We can fix this issue by using open ball $B_y(r_y)$ for some $r_y>0$, instead of using arbitrary open neighborhood $U_y$.
However, if dropping the assumption that $M$ is metric, compactness does NOT imply sequential compactness. But, in that context, I can't seem to find the falsehood in the above false proof. Every step still makes sense to me. So I'm confused. Where does the above "proof" break down in general compact spaces? Thanks in advance.
Update. As the comments below, one mistake I didn't realize is the statement "$(x_n)$ admits a subsequence converging to some point $y$" is NOT equivalent to "$(x_n)$ is frequently in every neighborhood of $y$". Because the latter one cannot guarantee a fixed sub-index $\{n_1,\cdots, n_k,\cdots\}$ making $(x_{n_k})$ eventually in all the neighborhoods of $y$. So point $y$ not being the limit of any subsequence is not equivalent to the requirement that some neighborhood of $y$ must only contains finitely many terms in $(x_n)$.
It's a different type of confusion, comparing with the suggested duplicated question.