Yes, I also agree with you that the game was very balanced, and it can be said that Nice won because they were lucky enough in this match. With this victory Nice can maintain their position at the top of the standings with only 1 point difference from Paris Saint Germain who are right below them.
Nice are also the only club unbeaten so far, but even so, there are still notes that they must improve, one of which is in their attack line. Because they have problems there, as evidenced by only being able to only create 10 goals from 9 matches they play.
Actually, Nice is above PSG, but this is not so important, at this stage there is only a two-point difference between PSG and Monaco and it is these three teams that will most likely get direct access to the Champions League. This season, France gets another place in the Champions League, which is a great achievement, and while Lille is in fourth place, I doubt that Brest will be able to move them up, and Marseille is still playing weakly enough, to lay claim to their place.