Hello there seems to be a stigma against Batman on this site. One of the most worst fallacies I've read is that Thor can beat Batman. Here is why he cannot:
The skill gap between Thor and Batman is enourmous. Batman knows every single counter to Thor's technique, it's how he was trained. When Thor acts high and mighty Batman breaks his wrist due to superior technique.
Obivously Thor has the potential to be stronger than Batman, BUT for the most part Batman can apply his strength to pressure points and end the Thor. Remember superior skill ^^^.
Thor has his hammer, but that will do him no good as Batman is lightning proof. If Thor attempts to use electrisity then Batman tanks it. On the other hand Batman's gadgets can take out Thor with med-high difficulty, for instance glue bomb would be mid diff tactic that would immobilize Thor
Batman is more agile and is faster in comBAT, that much is obvious
Some would say Thor has "wisdom" but a helluva lot good that will do him here. Batman has true intelligence and will find Thor's weakspots (steal his hammer, blow it up, remove his belt of strength), and increase his chances from high diff to mid or low diff.
Thank you for reading, I hope I've educated you somewhat on the matter.