Why did the former get cancelled and not the latter? Is it just a ratings game?

They're so similar: a fearless, NYC savvy brunette paired with a overly enthusiastic blonde recently thrust into an unfamiliar situation. Together, they overcome all differences and become unlikely friends! I absolutely adored Don't Trust the B* and can't seem to get behind 2 Broke Girls. The lazy racist humor coupled with the laugh track put me off. But it's still on the air, and occassionally I watch it. But I don't understand why Don't Trust the B* didn't get the same kind of audience 2BG gets. Is it that much darker?

Anyway. I don't get the way TV ratings worked and I'm sad Broad City is over.