I don't think anyone doubts PK is ahead in infrastructure nor is it surprising. We overtook PK in GDP per capita less than 1 year ago but PK was ahead of us for a long time. And most of that time PK was ahead, it had far better economy. So you had money to build the infra and build up wealth for long time culminating over time where a Pakistani have double wealth of what a Bangladeshi have. However, since we took over per capita and trends continue the way it is, which is highly likely, I believe BD will match Pakistani wealth in a decade and pass PK at incredible rate going forward.
However, what is not up for debate and paints a rather pathetic picture on Pakistan is other important indicators that shows how well the general populace of a country truly live. Pakistan has so much more wealth, better infrastructure and so on, on economic front for half a century and yet it sucks compared to BD on literacy rate, infant mortality rate, life expectancy, homicide, gender equality, fertility rate and literally every HDI parameters where Pakistan barely is in middle category. Why does Pakistan do so bad in this even though you have had more prosperity to counter these and easily do better than BD?