Similarities and difference
Both the Wizard of Oz and the the War of Worlds are fictional and escapist stories that put you right in the feet of the main characters and experience a world that is far from real.
In the Wizard of Oz, you follow Dorthy and her magical friends who help her along in her journey. In War of the Worlds, you see the invasion of earth by advanced aliens and experience the raw emotions of that character, his survival instincts and the danger he experiences.
However, apart from the similarities, they are actually very different. Wizard of Oz can be described as a family-friendly story that kids would love. However, War of Worlds is full of violence, blood, and gore. The tone is far more serious and suitable for adults.