Babur not only defeated Ibrahim Lodhi, but he defeated all the pashtun tribes he encountered in the tribal areas as well. Read babur's own book Tuzk-i-Babri:
"..Marching out of Kohat, we took the Hangu-road for Bangash. Between Kohat and Hangu that road runs through a valley shut in on either hand by the mountains. When we entered this valley, the Afghans of Kohat and thereabouts who were gathered on both hill-skirts, raised their war-cry with great clamour. Our then guide, Malik Bu-sa'id Kamarl was well-acquainted with the Afghan locations ; he represented that further on there was a detached hill on our right, where, if the Afghans came down to it from the hill-skirt, we might surround and take them. God brought it right! The Afghans, on reaching the place, did come down. We ordered one party of braves to seize the neck of land between that hill and the mountains, others to move along its sides, so mat under attack made from all sides at once, the Afghans might be made to reach their doom. Against the all around assault, they could not even fight; a hundred or two were taken, some were brought in alive but of most, the heads only were brought. We had been told that when Afghans are powerless to resist, they go before their foe with grass between their teeth, this being as much as to say, " I am your cow." Here we saw this custom ; Afghans unable to make resistance, came before us with grass between their teeth. Those our men had brought in as prisoners were ordered to be beheaded and a pillar of their heads was set up in our camp."
"As the Bajauris were rebels and at enmity with the people of Islam [Babur's army], and as, by reason of the heathenish and hostile customs prevailing in their midst, the very name of Islam was rooted out from their tribe, they were put to general massacre and their wives and children were made captive. At a guess more than 3000 men went to their death ; as the fight did not reach to the eastern side of the fort, a few got away there. The fort taken, we entered and inspected it. On the'walls, in houses, streets and alleys, the dead lay, in what hurnbers ! Comers and goers to and fro were passing over the;bpdies. Returning from our inspection, we sat down in the Bajaur sultan's residence. The country of Bajaur we bestdwed on Khwaja Kalan,3 assigning a large number of braves to reinforce him. At the Evening Prayer we went back to camp. {Jan. 8th) Marching at dawn (Muh. 6th), we dismounted by the spring* of Baba Qara in the dale of Bajaur. At Khwaja Kalan's request the prisoners remaining were pardoned their offences, reunited to their wives and children, and given leave to go, but several sultans and of the most stubborn were made to reach their doom of death. Some heads of sultans and of others were sent to Kabul with the news of success ; some also to Badakhshan, Qundflz and Balkh with the letters-of-victory.
Shah Mansur Yusuf-zai, he was with us as an envoy from his tribe, he was an eye-witness of the victory and general massacre. We allowed him to leave after putting a coat {tun) on him and after writing orders with threats to the Yusuf-zai."
The above two are quotes from Babur's own book. He also forced Shah Mansur to send his daughter (Bibi Mubaraka) to Babur. Which Shah Mansur first refused but later relented.
To the contrary Afghans (Lodhi) supported Hindu Rajputs against Babur in his epic battle against Rana Sanka the Rajput Chief. Even in days of Akbar the defeated son of Sher Khan Sur, Hakim Sur supported the Rajputs against the Moghals and lost.
That is perfect using Babur' own writing to defend his records. I wonder what the British had to say about South Asians after they defeated the Mughals. As for the rest of this revisionist garbage of history, all I will say is that the Pakhtun tribes may lost battles but were never vanquished unlike most of India.
So what is your agenda? Surely insulting the Pakhtun nation must have a background?
The Pakhtuns greatest weakness is the lack of unity.