If drilling were cheap (it most definitely is not), geothermal would be the better option.
Drilling and putting a nuclear reactor underground, much shallower than the deepest coal mines, can be quite expensive and still be cheap as a part of the total cost of the nuclear power station?