Without any doubt, in astrophotography it is always better to work in RAW.
The amount of information you will be able to obtain after stacking and light pollution reduction will be much higher than if you do it with JPEG images (which among other things only have 8 bits of information).