New South Wales 405 and 64 for 4 (Elliott 3-15) lead Western Australia 451 (Bancroft 100, Goodwin 76, Agar 69, Elliott 52, Malajczuk 50) by 18 runs
Nathan Lyon took his first five-wicket haul in more than two years, as Australia coach Andrew McDonald stressed he wants the axed Test spinner available for India.
Playing his first game since being dropped from the Test squad and potentially his last match at the SCG, Lyon finished with 5 for 153 on Saturday as Western Australia hit 451 in reply to NSW's 405.
NSW went to stumps struggling at 64 for 4, with WA quick Kieran Elliott taking 3 for 15 to go with his five-wicket first-innings haul and crucial 52 with the bat.
Among Elliott's wickets were Sam Konstas, bowled for 5, in a blow to his hopes of being Australia's reserve batter for Perth.
But Lyon's future remains the biggest focus, after chief selector George Bailey urged him last week not to retire after being left out of a Test squad for the first time in 15 years.
There had been a thought Lyon could skip this fixture, but it's understood he wants to fight on and earn his spot back for the five-Test India tour. This match will be Lyon's last before Australia leave for that tour in January, given he does not hold a BBL contract.
Much of his preparation could also come in Perth, with the spinner and his family set to relocate there in coming weeks.
Lyon bowled at his best on the second evening, when he had centurion Cameron Bancroft caught behind, bowled Cooper Connolly with a classic offbreak and had Corey Wasley stumped.
The spinner bowled Joel Curtis when he chopped back on to his own stumps on Saturday, then outsmarted debutant Will Malajczuk by bowling him in similar fashion on 50.
After he cut Lyon to the boundary to bring up his half-century, the veteran was quicker through the air next ball and got his bottom edge back onto the stumps.
"It's great to see him back in action, playing that Shield game and performing at that level for NSW," McDonald said. "He's clear on where we sit with him, I will say that. And what that looks like in his future, that's something for Nathan to weigh up.
"I think Bailey said in terms of the direction for India, we would like to have that option available, so that's where we sit. Nothing's changed on that.''
Lyon's five-wicket haul was his first since October 2024 and took him to 200 first-class wickets for NSW, but may also carry added meaning in potentially his last game at the SCG.
It's believed part of the spinner's disappointment in being overlooked for the summer is that he will be denied a final farewell Test on home soil in Sydney.
If Lyon goes to India he will not be available for any further NSW matches this season, and it is questionable if he will play on next summer.
Meanwhile Elliott's crucial 52 came as part of a superb lower-order fightback, after WA slumped to 249 for 6 early on Saturday.
Malajczuk and Ashton Agar put on 84 for the seventh wicket, with the former cover-driving the quicks well and hitting Lyon back over his head for six.
Agar also hit Nic Maddinson back over his head for a six, while Lyon was denied a sixth wicket when Riley Kingsell put down a tough chance off Elliott in close.