Parallels between the two wars abound, from the grinding nature of the fighting to the way new technologies reshaped warfare.