Bad conversion to jpg from 16UC1 image or jpg compression artifacts?

For me, JPEG is able to represent this since I can convert from the PNG and get “normal” results.

So, according to you @crackwitz, the wrong result is due to JPEG’s lossy format?