Why did the German army choose gasoline and oil over capturing Moscow in World War II?
This question poses a question of the past. The straight forward explanation is that Hitler wanted gasoline more than Moscow.
The German generals were majority in their desires to attack Moscow. They viewed it as the richest prize, the capital and the center of the country and its primary railroad station. They were of the view that by occupying Moscow, the Soviet Union would be compelled to give up.
But Hitler perceived a greater evil. Germany was quickly exhausting resources of fuel. Without it tanks, trucks and planes could not work. In order to win the war, he required a huge supply of oil.
The petroleum was in the Caucasus of southern Russia.
Had the Germans got such oil, they could have had sufficient fuel to continue fighting forever. Better still, it would have severed the primary source of oil (the Soviet Union) and left the army and factories of the Soviet Union crippled. Hitler thought:
The enemy is not destroyed by a single dramatic victory rather by destroying his resources.
Look at Moscow. An assault would have been a dreadful and expensive fight that would have injured the German army further. Even in case the Germans had won, the Soviet government would have had an opportunity to fight on the east. Symbolically, Moscow did not produce any oil, or any other needed resources.
This way, Hitler preferred oil to the expensive image of Moscow. And that was the obvious way to win.