claim: Let $(M, d)$ be a metric space and $K \subset M$ compact, $O \subset M$ open. Show that $K - O$ is compact.
Proof: I think this should follow directly. If $K$ is a compact set, that means every open cover of $K$ contains a finite subcover.
let's define an arbitrary finite subcover of $K$ to be $\{A\} = A_1 \cup A_2 \cup \cdots \cup A_n$
Since $K - O$ is simply the set $K$ with the elements of $O$ taken out, that means our set we need to cover is smaller, and therefore surely covered by $\{A\}$.
Since $K - O$ is covered by $\{A\}$ and $\{A\}$ is a finite subcovering by construction, then $K - O$ is compact.
Does this work?
I didn't even use the fact that $O$ was an open set in $M$.
Wrong. You proved that an open cover of $K$ contains a finite subcover of $K\setminus O$. However, it must be proved that an open cover of $K\setminus O$ contains such a finite subcover.
Let $\mathcal V$ be an open cover of $K\setminus O$.
Then $\mathcal V\cup\{O\}$ is an open cover of the compact $K$ (here it is used that $O$ is open).
So there is an finite subcover $\mathcal W\subseteq\mathcal V\cup\{O\}$ that covers $K$.
Then $\mathcal W-\{O\}\subseteq\mathcal V$ is finite and covers $K\setminus O$ and this with $\mathcal W-\{O\}\subseteq\mathcal V$.
This proves that $K\setminus O$ is compact.