O'Neal had 23 points and 13 rebounds while Green totaled 18 and 10 for the Warriors, winners of three straight.
Stephen Curry had 17 points, eight assists and five rebounds.
Deron Williams paced the Nets with 20 points and six assists. Brooklyn lost for the second time in five games.
Millions of Getty images now available for free via embed tool
NBC reportedly holds celebs hostage to Jimmy Fallon's show