Yeah, it's not illegal, just totally unsafe due to vigilante mobs enforcing perceived societal values. TOTALLY different. </sarcasm>
Relative to each other, maybe it's better for gays in Russia than Qatar. But they're both pretty fucking awful compared to the rest of the world.
Also, homosexuality was decriminalised in Russia in 1993. The recent law bans distributing material about non-traditional sexual relations to minors. It does not make it illegal to be gay in Russia.
Contrast this to Qatar where it is illegal to be a male and homosexual - the punishment being a couple of years in prison and public lashing.