There are stylistic differences, but if you change the subject and verb for the following clause, the comma is widely considered mandatory. My sentence here is an example. In the following sentence you don't need the comma because the subject hasn't changed: My kids don't like vegetables but love fruits of all kinds.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.