RAW and JPEG are not really two different kinds of photographs. They are two different ways of storing what the camera captured.
JPEG is the camera making decisions for you. RAW is the camera giving you much more of the information so you can make those decisions later.
That does not automatically make RAW better. It makes RAW less finished.
JPEG Is Already an Opinion
When the camera creates a JPEG, it applies processing. White balance, contrast, sharpening, noise reduction, color rendering and compression are all part of the result.
That can be exactly what you want. If the exposure is good and the camera's rendering looks right, the JPEG may be ready to use immediately.
The problem is that some of those decisions are difficult to undo.
RAW Gives You More Room
A RAW file preserves considerably more information from the sensor than a finished JPEG. That matters when the photograph is not perfect.
Recovering highlights, opening shadows, changing white balance and making larger tonal adjustments are much easier when you have more original data available.
This is one reason I shoot RAW. It gives me room to fix mistakes without immediately destroying the image.
RAW Does Not Save Bad Photography
There is a dangerous misconception that RAW means you can fix everything later.
You can't.
If focus is wrong, RAW does not magically create detail. If motion blur is severe, you cannot simply slide it away. If the highlights are completely clipped, there may be nothing useful left to recover.
RAW gives you latitude. It does not give you a time machine.
What Actually Matters
Shoot JPEG when you genuinely want a finished file quickly and accept the camera's processing decisions.
Shoot RAW when you care about control, difficult lighting, dynamic range or serious post-processing.
For my photography, RAW makes more sense because editing is part of the process, not an afterthought.