The invasion of Iraq was based on poor intelligence (perhaps purposely so if youre conspiratorial) and deposed a ruthless dictator who murdered whole swathes of his people for decades. It was performed under the rules of engagement by an international coalition of countries who attempted to lessen civilian deaths where possible.
The invasion of Ukraine is a pathetic landgrab against a democratic European nation by an insane nuclear armed dictator who along with his friends has stolen hundreds of billions from his nation, imprisoned his political enemies and murdered people. He has several times agreed to a ceasefire/corridor and then shot the people attempting to escape, has annexed whole parts of the country and is currently under investigation for crimes against humanity.
To draw some moral comparison between these two incredibly different events is either spectacularly lazy ir spectacularly stupid.