As an English speaker, I can tell you that both of these phrases are used and mean approximately the same thing, but the tone with which they are said makes all the difference. In writing, you will most likely only see the first phrase used. The second phrase is also used when speaking, but in a sarcastic way. As another person has noted, both can be perceived as rude depending on the context, tone, and setting.