Assessing the role of static length scales behind glassy dynamics in polydisperse hard disks