Well yeah, and americans trained osama bin laden to fight them. Oh how the turntables...
So we basically agree, that both countries are bad, but we somehow act as if somehow americans are the "good guys" for bombing weddings in pakistan and killing afghanis, and bunch of other people, and that russians deserve the sanctions, while other countries currently occupying eg. syria don't.
The US are the good guys, quite obviously. That's why nearly all the good - liberal, democratic, freedom-oriented - nations are specifically aligned with the US, and why Russia's only pals are tyrants. It's also why Ukraine is friends with the US (despite the distance and cultural separation) and is fighting a war against Russia, because Russia are the bad guys (anti democratic, anti liberal, regressive, dictatorship, conquest-oriented).
Nobody thinks the US are the good guys for bombing a wedding in Pakistan. It's for countless other reasons that people still think the US are on the side of good, as it always has been. You're of course attempting to use a particularly weak argument to prove a massive claim. The US doesn't have to be perfect to be good. What Germany did in WW2 doesn't preclude them from being good now; what the British Empire did doesn't preclude them from being good now; and so on.
The US have been such extraordinary good guys across time, we even saved millions of Russians from starvation by their own government (even while Russia was broadly considered an enemy of the US at the time, we saved them anyway):
Things like that are what have built the US moral credibility, which stacks against its various mistakes (and everyone here knows well all the prominent US mistakes).
The US invaded Germany, the US invaded Italy, the US invaded France (and several other European nations), the US invaded Japan, the US invaded Korea. Now contrast what the US did after invading Europe, with what Russia did. It's the difference between being the good guys and being the bad guys, just ask Poland what the difference is - they know exactly what the stark separation between the US and Russia represents (the difference between freedom and slavery, affluence and poverty). There's a reason why Poland welcomes US soldiers on its soil, and why they'd fight to the death to keep Russian soldiers out of their territory. Ask Czechia, Slovakia, Estonia, Latvia, Lithuania, Romania what the difference is, they all know.
Why are all of Russia's weaker neighbors afraid of it? Meanwhile, there's affluent, free, peace-loving Canada, not afraid in the least (witness their military spending) that the US superpower of the last 75 years would invade and attempt to conquer them. The difference between the US and Russia could hardly be any greater, now or in the past. The Canadians know it, the Polish know it, the Ukrainians know it.
What Russia is doing right now is evil, and they are the villains in this war, regardless of what they did in the past. We don't need to eg go into the history of the Holodomor and other things Russia has done to Ukraine and its people to demonstrate their evil, all we need is to focus on what Russia is doing at present (intentionally genociding the civilians of Ukraine). Russia are the bad guys and it couldn't be any more clear than it is - which is again why Ukraine (freedom-seeking, aspirational democracy, liberal-leaning, West-leaning) is asking the US to help them fight against Russia and why Ukraine appeals to the US about shared liberal values just as they have with other European democracies.
The US didn't train bin Laden. It didn't invent Al Qaeda. It didn't train or create the Taliban either. Funding various Mujahideen in Afghanistan in the decade prior to the founding of the Taliban, doesn't equate to training bin Laden.
> Why is US good for attacking various middle eastern, african and south american countries, and russia is bad for attacking ukraine?
Intent matters. Iraq was not a sovereign nation when the US invaded, it was a slave encampment (its people had no human rights), its majority Shia population was held hostage - genocided and constantly tortured - by the minority Sunni Hussein regime. There's no such thing as a sovereign dictatorship; there can be no claim of sovereignty where there are no human rights. Any free nation had a moral right to invade Iraq, if it so chose, to attempt to remove Hussein's regime and attempt to free the Iraqi people from the grip of his regime. The US didn't go into Iraq to conquer it, or annex its territory, or steal its oil (which is why today Iraq is free-standing and has such enormous oil revenue pouring into its government coffers).
Did the US have a moral right to invade Nazi Germany? How about Fascist Italy or the Empire of Japan? Did the US have a moral right to invade France and help free it from the Nazis and Vichy France? Yes it did, of course, and the same moral principle in action there was just as valid in regards to Iraq and the Hussein regime that was holding the majority in Iraq hostage. Which simultaneously doesn't mean it was rational for the US to invade Iraq (as it wasn't willing to dedicate the extraordinary resources necessary to provide the security to prevent the civil war between the Sunni and Shia, which would have required far more troops and financial investment).
So even though the US rationally should not have invaded Iraq, the democratic world understands the US didn't go into there in the name of conquest. The democratic world understands the US didn't invade France, Italy or Germany to conquer them. That's why the US is still viewed as good, because intentions matter. It went into Iraq with a very naive belief that - with its superpower might - it could nation-build a new democracy relatively easily in the Middle East. And when the civil war broke out between sectarian groups, the US stood between them and tried to stop it, at great loss to the US in blood and treasure. The US didn't try to take Iraq's oil (India and China are the biggest recipients of Iraqi oil today), it lost over a trillion dollars from the invasion. It's entirely fair to call the US invasion of Iraq a gigantic blunder, a foolish mistake, an act of arrogance by a superpower that thought it could materialize a democracy easily out of thin air. The good nations of the world understand the US didn't try to conquer Iraq for its own empire, that annexation of Iraq wasn't its goal, which is why NATO is still standing and why the US allies in Europe didn't abandon the US.
The US spent hundreds of billions of dollars trying to nation-build Afghanistan to progress the nation forward, including shepherding the first democratic elections in its history. The US effort failed, it was naive in regards to what it would take to accomplish a positive, sustainable outcome in a nation as backwards and poorly developed as Afghanistan. The US is regarded as the good guys in regards to Afghanistan, because of what its intentions for the nation were (compare it to the Taliban and who the friends of the Taliban are - exclusively tyrants and theocrats). Russia went into Afghanistan in the name of conquest, to make it a de facto part of the Soviet Empire, it didn't aim to build a free, democrat nation there.
Russia has gone into Ukraine solely to annex its territory and conquer it for the goals of the Russian Empire, as per Putin's own oft stated world view (of how things should be). Ukraine is a burgeoning democracy pursuing liberal values, Russia is a brutally repressive dictatorship with no human rights that has largely been ruled by one tyrant after another for centuries. Russia's intentions are plainly evil, they aim to enslave the Ukrainian people and destroy their pursuit of liberal values, to force them to be part of Putin's imagined new Russian Empire.
> Russia has a minority living parts of ukraine, and the ukranian neonazis (which became a part of the official national guard in 2014) have been attacking them for years now.
Azov is smaller, both absolutely and as a share of the forces on the relative side, than the neonazis among the separatist forces it operated against even before the full-scale direct genocidal invasion by the militarily aggressive totalitarian corporatist ethnonationalist (or, more succinctly, fascist) Russian regime that had both invaded parts of Ukraine in 2014 and sponsored (and in some cases covertly supplied) the separatist forces.
So we basically agree, that both countries are bad, but we somehow act as if somehow americans are the "good guys" for bombing weddings in pakistan and killing afghanis, and bunch of other people, and that russians deserve the sanctions, while other countries currently occupying eg. syria don't.