Goldfish will suffer in the topical temp water that betta's need.
Betta's would freeze in the cooler water Goldfish need.
Not only that, but Betta, specially Male Betta, will aggressively attack goldfish because they usually have rather large, flashy fins.. compared to the betta.