It’s a formula as old as time.
On one side, you have the straight arrow, all stoic and proper, doing it right and doing it well, by the book, the way it’s always been done. Best guy on the force. Trusted leader. Occasionally criticized for being humorless, sure, but he’s got a job to do, that’s why, he’s got no time for shenanigans.
On the other side, you have the lovable goof, all flash and sizzle, a dash of class clown, doing this his way, having fun and looking good doing it, freestyling, a little crazy, stumbling into the occasional “hand over your badge moment”. Wisecracks, jokes, wry smiles. Adventure.
And then they get paired together, and despite their differences, it just works. It’s the formula that’s been keeping the comedy genre alive for ages.
Comedy genre? Seems more like the romantic comedy genre to me.