Kasper Dolberg scorede sine første ligamål siden oktober, da han var stærkt afgørende i Nices 2-1-sejr over Nantes i Ligue 1.