What are the contexts for using *a bunch* and *a group* when describing a handful of people? Please take both spoken and written English into account.

For example, when is it more appropriate to use "a bunch of people" vs. "a group of people"? And are "a bunch of people" or "a bunch of friends" appropriate in an essay? Under which circumstances would either be preferred over the other?