Rangers or Celtic will face St Johnstone at home in the Scottish Cup quarter-final.
The competition was suspended in January due to the coronavirus pandemic and has been forced into a congested schedule.
That meant that the draw for the fourth and fifth rounds took place simultaneously, with Celtic travelling to Rangers in the tie of the round.
And it's now been confirmed that the winner of Sunday's showdown will face St Johnstone at home after Callum Davidson's side beat Clyde 2-0.
Both sides made a raft of changes for the match but even still it was evident early on that The Bully Wee's hectic schedule had left little in the tank as they stepped up to face top-flight opposition.
If the part-timers were to stand any chance, they needed to avoid conceding an early goal.
But those hopes went up in smoke inside six minutes as Melamed caught Lloyd Robertson in possession.
O'Halloran drove into the box, delaying his cross by a fraction of a second to ensure the Israeli could steer home from five yards out on the stretch.
Danny Lennon's side were making problems for themselves trying to play out from the back.
But it was a lucky break that handed St Johnstone their second as a wild bounce from Scott Tanser's block tackle on Marky Munro sent Stevie May surging down the left, with his ball inside perfectly measured for the onrushing O'Halloran to stick through Matej Vajs' legs.
Jamie McCart was denied a first goal for Saints just before the break as Munro cleared from under his own crossbar.
The big centre-back blazed another over in the 65th minute as Saints continued to rack up chances.
Skipper Liam Craig had a couple of efforts pushed away by Vajs while Melamed thudded a David Wotherspoon corner against the crossbar with his head.
Lewis Jamieson thought he had given Clyde a lifeline with 12 minutes left after Liam Gordon failed to control a hospital pass from goalkeeper Elliott Parish - but the Saints defender's blushes were spared by an offside flag as the top-flight outfit claimed their fourth clean sheet in their last five games.