This. It is hard coded all over the place in thousands of things.
In fact is it even git any more if the master branch isn't called master? Nope it's an incompatible fork by Microsoft purely by a chance encounter of irony.
Where exactly do you depend on knowing the name of the default branch of an unnamed repository, and how do you handle cases where people delete the master branch.