This is a very hard question to answer without some specific examples. Without examples, but the comma before the but, and if it joins two independent clauses, then I would say you have to use it. I like comedies, but he likes action films.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.