The Bee Gees are persistent and they work hard for the money, carefully cloning current fashion with Size Isn't Everything.
You can just hear them saying, "We did disco, we can do hip-hop," and you can hear them try on "Paying the Price of Love," with its heavy percussion track.
But it wasn't their approximation of the Compton beat that got them (just barely) back in the pop charts, it was the hook, which wasn't all that different from "Massachusetts.".