Whether driving below the posted speed limit is safer than driving with a somewhat faster flow of traffic is a fuzzy, very contingent question.
(Also, the second case is something a car manufacturer should probably be resolving more by not hogging the overtaking lane than defaulting to going 20mph over the limit for extended periods because everybody else does)