But that’s the thing - this is another case of Obama not remotely doing what Trump did, and getting attacked for it. (Before he was president, Trump himself attacked Obama for golfing. Another case of Trump furiously projecting what he would do.)
Most presidents golf, and Obama spent less time than GW Bush (and made sure to golf in places like military bases to reduce secret service costs), and got attacked for it more - he certainly wasn’t going to get away with pulling a Trump.