City by the Sea is a gritty police thriller with all the dysfunctional family dynamics one could wish for .