It isn't possible to skip the Mechanical Bosses, Plantera and Golem since their deaths directly trigger the next respective phases of the game, so instead gear up and defeat them. At any time, you can fight Duke Fishron and the Pirate Invasion for extra loot.