doch

  • affirmation or confirmation
    • “Du hast keine Zeit.” (You don’t have time.) “Doch, ich habe Zeit.” (Yes, I do have time.)
    • Er hat nicht gewonnen.” (He didn’t win.) “Doch, er hat gewonnen.” (Yes, he did win.)
  • emphasis
    • “Das habe ich doch gesagt!” (I did say that!)
  • question expecting a confirmation
    • “Du kommst doch morgen, oder?” (You are coming tomorrow, aren’t you?)

jedoch

  • However/Nevertheless: “Jedoch” is used to introduce a contrast or contradiction, similar to the English words “however” or “nevertheless.” It’s used to show that the following statement contrasts with or qualifies the preceding one.
    • “Ich mag Pizza. Jedoch esse ich sie nicht oft.” (I like pizza. However, I don’t eat it often.)
  • Formal Writing: “Jedoch” is more commonly used in formal writing and is considered slightly more formal than “aber” (but) when expressing contrasts.

To summarize, “doch” is used to contradict or affirm statements, add emphasis, and seek confirmation in questions. On the other hand, “jedoch” is used to introduce contrasts or contradictions, often in more formal writing or speech.