This is the 88th most frequent German word.
doch
"Doch" is a German word meaning "but," "however," or is used to affirmatively contradict a negative statement or question.
In this sentence, 'doch' means 'but' and is used to introduce a contrasting clause.
Ich wollte nicht kommen, doch es war notwendig.
I didn't want to come, but it was necessary.
'Doch' here adds an encouraging tone to the invitation, making it more persuasive or friendly.
Komm doch mit ins Kino, es wird Spaß machen!
Come along to the cinema, it will be fun!
In this case, 'doch' means 'but' again, used to introduce a point that contrasts with the previous statement.