There’s a coach from Oslo to Malmö. Not sure if it goes on to Copenhagen, but it’s easy enough to walk to the train platform and be at Copenhagen in 40mins.
I can't stand to be in a bus for more than about an hour and a half (or on a plane at all), while I can be in a train all day and enjoy the ride. YMMV.