When PNG is the better choice
Every time a JPG is edited and saved again, it is compressed again and loses a little more detail. PNG is lossless, so a PNG copy can be edited and saved as often as you like without getting worse.
Some apps, print services and upload forms also ask for PNG specifically.