We don’t really know the design process for QWERTY but it wasn’t about avoiding mechanical jams. Avoiding mechanical jams was the reason Dvorak was invented.
QWERTY if anything seems to be about being convenient for transcribing Morse code. Letters with a similar Morse code are grouped etc.
You're right about the first part (we don't really know why QWERTY was designed the way that it was), but as far as I understand it's pretty clear that Dvorak was created to enhance typing speed and comfort, based on ergonomic principles not related to mechanical details. For example, it is designed to alternate typing between the two hands for most common letter combinations, and to have most common letters on the home row.
QWERTY if anything seems to be about being convenient for transcribing Morse code. Letters with a similar Morse code are grouped etc.