This is based on their crystal structure. Gold has a coordination number of 12 while boron has 6 or less than 6.