As a beginner myself there is some good advice in this thread! Thanks! Are there maybe more details about the difference between the two rather than just which you should use!
The nature of digital photography is that you do use both the RAW file and the camera generated JPEG with every shot, no matter what else is done.
It's just a question of when or if the RAW file is discarded, and how much interactive use it gets before that.
Every click of the shutter produces raw sensor data. The camera has a JPEG generation system, which among other things provides a preview image and data for histogram presentions that show blinking highlights and a graph. A JPEG image is also embedded in each RAW file if that is saved to the memory card, and it produces a JPEG file if that is saved to the memory card.
Hence it is clear that regardless of what is saved, both are generated and both are used.
An in camera JPEG image is generated using configuration options selected prior to making the exposure. Most cameras have a large variety of settings, some of them that can be fine tune and others that are generic. Things like "Night", "Daylight", "Portrait", and so on are more generic and may change the specific sharpening, saturation, contrast settings. The significant point is that what you actually do shoot and which settings you use need to match, and can never be more than a very good guess. The advantage is that if the guess is close enough, a finished product is produced instantly.
The raw sensor data from which the in camera JPEG is produced is saved to the RAW file, and the JPEG generation configration can then be an external process, adjusted by observation to be not just close enough, but rather to precisely match results with what is desired. The typical example is that Color Balance can be controlled very precisely, either for what looks best or for the closest match to the actual colors seen at the time. Or one image can be generated for one criteria, and another for a different criteria.
Neither workflow is inherently "best", but they each are better for different aspects of photography.
A beginner needs to see what the camera produces, so shooting in JPEG mode is perhaps essential. But not getting a RAW file for future use means losing many images that could be very useful. Shooting in a RAW+JPEG mode is very helpful. Working on how to produce better JPEG images than the camera defaults can make will also allow a beginner to make better camera configuration choices for the in camera JPEG images.