By default motion keys values are interpolated, this can cause weird motion of objects in some situations, if dynamics looks correct when computing but weird after baking keys this is the case, to fix it select the flickering objects open the curve editor and set tangents->stepped, another way is applying an euler filter.
Thiss was great to read