What?? A image I take in a jpeg will be sharper than the image I take RAW??
Yes, because a JPEG is edited right in the camera. A JPEG is
a finished, ready to print image file. Well get back to this in a moment
A Raw image data file cannot be seen as an image. It is just a bunch of data: 10001010101101010101001010101010101101011011010000111010101001010......... and if you could see it as an image, it is in fact colorless, a monotone image. With most DSLR's there is a Bayer Array in front of the image sensor and with that array the colors are inferred by a mathematical algorithm process known a demosaicing.
Understanding Digital Camera Sensors
That data has to be converted into an image, but that conversion is not done in the camera. It has to be done using Raw converter software that is not in the camera.
DSLR cameras capture Raw data files as either 12-bit depth files or 14-bit depth files. Some DSLR let you choose one or the other.
The bit depth determines how many tonal gradations can be rendered in the photo. 12-bit depth can render 4096 tonal gradations per color channel: red, green, and blue. 14-bit depth can render 16,384 tonal gradations per color channel: red, green, and blue.
JPEG is an 8-bit depth image file format. 8-bit depth can only render 256 tonal gradations per color channel: red, green, and blue. Because JPEG can only render 256 tones, it has little, if any editing headroom.
Here is a key point: The camera always starts with a Raw file. If you have the camera set to JPEG, it never writes the Raw image data file to the memory card, but it uses the Raw file data to make the JPEG.
So, there are 12 or 14 bits of tone captured by the image sensor, but JPEG can only use 8 of them. No problem. The camera simply throws away enough tonal data to get down to 8-bits. (All of the luminance data is retained, only color data is discarded.)
JPEG is called a lossy file format, because about 80% of the tonal data the camera can capture gets discarded. That's why JPEGs are considered a final, print ready and have little, if any editing headroom.
Why Should I Shoot Raw?