Which event led to the end of the Sayyid dynasty and the rise of the Lodhi dynasty?

A ) Alauddin Shah's deposition by Bahlul Lodhi ✅

B ) Battle of Panipat

C ) Timur's invasion

D ) Muhammad Shah's death