In Schlag's book on Riemann surfaces, we have Problem $4.15$, which is:
Let $M, N$ be compact Riemann surfaces and suppose $f: M\setminus\mathcal{S} \to N\setminus\mathcal{S}'$ is an isomorphism, where $\mathcal{S}$ and $\mathcal{S}'$ are finite sets. Show that $f$ extends to an isomorphism from $M\to N$.
This is also Exercise 8.2 in Forster's text. I think we can prove this as follows (but I am not totally sure about this either).
Let $a\in \mathcal{S}$ and pick a sequence $a_n \subset M \setminus > \mathcal{S}$ such that $a_n \to a$. Then, by compactness of $N$, there is a subsequence $f(a_{n_k})$ converging to some $p \in N$.
Suppose $p \in f(M \setminus \mathcal{S})$, and let $K:= \{f(a_{n_k}), > p\}$. Since $f$ is continuous, we have $f^{-1} (K)$ is closed, hence $f^{-1} (K)$ is compact (by compactness of $M$). And, since $f$ is injective, we have $f^{-1} (K) = \{a_{n_k}, f^{-1} (p)\}$.
Let $U_k$ be a neighborhood of $a_{n_k}$ containing none of the other elements of sequence $a_n$. Then for any neighborhood $U$ of $f^{-1}(p)$ , the cover $\{U_k, U\}$ has a finite subcover, so all but finitely many elements of $a_{n_k}$ are in $U$. Thus, $a_{n_k} \to f^{-1} (p)$ , which implies $f^{-1} (p) = a$, contradiction.
So, $p \in \mathcal{S}'$. Now, by the lemma in this answer and discreteness of $\mathcal{S}'$, it follows that $f(a_n) \to p$. Further, if $b_n \to a$ is a different sequence, then discreteness again implies $f(b_n) \to p$. Thus, we can continuously extend $f$ to $M$, hence we can holomorphically extend.
Now, we have an injective holomorphic map $M \to N$ of compact Riemann surfaces. By the open mapping theorem, it has to be an isomorphism.
However: in an old problem set of Curt McMullen, a similar problem is given:
Let $X$ be a compact Riemann surface and $A \subset X$ a finite set. Show that any injective holomorphic map $f: X\setminus A \to Y$, where $Y$ is another compact Riemann surface, may be extended to an isomorphism $X\to Y$.
The difference here is that we have to show ourself that $Y \setminus f(X\setminus A)$ must be discrete. How can we do this?