Although race and ethnicity play a role in the cost of a mortgage, geography, education and loan type may be more important.