FIRST Minister Nicola Sturgeon has said she would have resigned had she been found to have broken the Ministerial Code, but said she would not be “bullied” out of her position as she defeated an attempt to oust her.

Sturgeon faced a vote of no confidence yesterday, brought by the Scottish Tories, who claim she misled Parliament and ignored legal advice. But the vote fell by 65 votes to 31 with 27 abstentions.

James Hamilton, the independent advisor on the Ministerial Code, cleared the First Minister on Monday of a breach of the code, but a cross-party committee set up to look into the botched handling of harassment complaints against Alex Salmond voted by majority to conclude she misled Parliament.

This cross-party committee consisted of two Tories, one LibDem, one Labour, one Independent and four SNP members, the majority was five to four.

It was generally agreed upon that Hamilton’s inquiry, which had been ongoing for two years and did not suffer from press leaks, would be the most impartial – and therefore the most accurate – one.

Speaking in the debate on the no confidence motion, the First Minister said had the Hamilton inquiry gone the other way, she would have quit.

“Had Mr Hamilton’s report gone the other way, I would have accepted it, had he found that I had breached the code in anything other than the most technical and immaterial of ways, I would have been standing here right now tendering my resignation,” she said.

“The integrity of the office I am so privileged to hold really does matter to me.

“The office of First Minister is more important than any temporary incumbent of it.”

The First Minister also told the Tories: “If you think you can bully me out of office, you are mistaken and you misjudge me. If you want to remove me as First Minister, do it in an election.”

She added: “If today’s desperate political stunt proves anything, it is that you have no confidence whatsoever in your ability to do so, because you have nothing positive to offer the Scottish people.”

Scottish Tory Holyrood leader, Ruth Davidson, said the First Minister had been found to have misled Parliament by the cross-party committee and the “honourable” thing to do after the publication of yesterday’s report would be to step down.

“After all that evidence-gathering and deliberation, the committee found that Nicola Sturgeon misled this Parliament, nothing can erase that fact, however inconvenient it is to the First Minister and her supporters,” she said.

Labour leader Anas Sarwar took aim at both the Scottish Government and the Tories, the latter of whom he accused of a “futile and vain pursuit of a cheap political scalp”.

Sarwar said his party would not support the motion, adding: “We cannot support a motion which is designed, not to deliver the kind of strong opposition they promised, but purely at dividing our country and our politics still further.

“A failing government on one hand; a game-playing opposition on the other. Our politics must be better than this. Our people deserve better than this.

“For the sake of the people of Scotland, coming through Covid, and with the huge challenge and task that faces us, we can’t come back to this.

“Scotland deserves a better government; and it deserves a better opposition.”

He added: “The Conservatives have shown themselves as only interested in removing Nicola Sturgeon from office, rather than the facts of this terrible series of events.

“They have undermined the integrity of the independent investigator.

“Yet even the most ardent SNP supporter must recognise the women who complained were let down by the Government and that half a million pounds was wasted defending the indefensible in court.”

Scottish Greens co-leader Patrick Harvie said any MSP who had leaked the findings of the committee’s report and the testimony of complainers from a private session should not be allowed to stand in May’s Holyrood elections.

He added: “They have shown contempt for the serious issue of sexual harassment. They have shown contempt for their witnesses.

“They have shown contempt for the rules of this Parliament.

“And, having failed in their attempt to drag Scottish politics down to their level, they should just go.”