Hello Ravi Chaudhary,
You have properly analysed the causes of the defeat of the Indian side. it may be added here that Babur was one of the best and seasoned generals of his time of Asia who was opposed by immature but the brave Ibrahim Lodhi. It is wrong to assume that Indian were in any way inferior to the Mughals. You have rightly said that superior weaponry was one among the causes of his victory.
I would like to share with you what I have read on the topic though I am not a person with military background.
That one cannot under estimate the tactics adopted by Babur before going to war against either Ibrahim Lodhi in 1526 at Panipat or Maharana Sanga in 1527 at Khanwah near Agra i.e. his field placement in "Tulughnamah" format. According to this Babur got dug a deep ditch 'Khai' and thatched it with trunks of trees and grass in front of his main arm and put his carts towards his army formation and behind them put his artillery. he then divided his army in three parts one each led by his trusted generals on right and left flanks and he himself kept a portion under his own command as reserve which was used w hen his own two battalions and the enemy forces had tired. This tactic brought the desired results of not only annihilating the opponents but also giving a psychological touch to the scene of battle as these fresh soldiers used to be more agile and quick to move where they were much needed. Rest of the butchering was done by his famous topachies/gunners Mustafa etc.
Regards,
Dr.Raj Pal Singh