there's definitely dissonance. The difference is it's an accidental in a melodic line. The dissonance is basically adding to the song, in your ear at least. imo it doesn't sound good at that point.
aka the dissonance is the question and the piano afterwards is the answer