Check Python arch will be in dynamic and static binding, you're right.
But in static binding, vim will throw error when linking (#20820). So this PR checking only dynamic binding.
In fact, this statement just prevent compiling error. (I'm not test MacPython case.)