Why earthquakes of similar magnitude can have very different outcomes

Venezuela and Japan were both rocked by powerful earthquakes on June 24, but why did one suffer widespread destruction while the other escaped with limited damage?
( read original story …)