If you're a developer in the Ukraine with great English and reasonable business skills, you should be able to land a pretty good dev job with a global company.
Another, just as good dev in the Ukraine that only knows Russian/Ukrainian, will have much harder time and will likely be limited to working with just local companies, significantly limited with options.
The people spouting "it's all about how much value you produce" are so naïve and ignorant of their privileges / market realities that it hurts.
With devs the compensations will match only when the good foreign developers have just as many alternatives as the good U.S. developers (or at least close to parity - exact parity will never happen due to jobs that simply can't be offshored - contracts with government agencies, for example)
But, if you onboard people into your startup I don't think most people would consider it a wise strategy to underpay certain team members that are part of a distributed team based on where they live..
I've had some experience in this and what I've realized is that the really good remote developers in India already know their value and they can demand US level salaries for their time.
Yes, it's still not as many and you can still find a lot of good developers for relatively (relative to US) low pay, but the trend is clearly changing.