When a gift comes with a receipt, it’s expected that the gift giver may not have understood what you wanted most. In this case, getting a refund or exchange for something you feel you can’t use is perfectly fine. If no receipt is present, it’s best not to give the gift back to the giver, since this goes against the idea “it’s the thought that counts” (source).