I guess the first step would find out how much it would be so you can make a decision from there.
Can be done via the My Optus App: More > Profile > scroll down to Cost to change contract
What phone is it? What do you hate about it?
I'd check to see what it would cost to buy it out and from there Unfortunately it's not something you can go 'I've changed my mind' after a month or so