Shamrock Rovers came out on top in the first Dublin Derby of 2023 with a 2-0 win away at table toppers Bohemians.