Most, if not all, open source software licenses allow others to obtain a copy of the source code, edit, and redistribute both source and built versions of the software, edited or not. Also, more often than not, that includes commercial redistribution.
My question is: is there anything legally preventing someone, besides the original author, from simply taking the software and selling it as-is? or is it only disparaged by the fact that a free copy is available elsewhere? I just want to allow others to freely use and edit my software, even if it's for commercial use, but I don't want others selling exactly what I made.
Obviously there are other licenses like CC-NC and it's variants, but those generally are not used for software, and aren't open source due to the restrictions they place.
For example, if I wrote an open source Android game under the MIT license and some studio decides to put the game on the Play Store, without modification or my permission, and manage to sell thousands of copies, could I challenge them in court via some clause in the license I used or copyright law in general, and win?