Late to this party, but I recently wrote a blog post attempting to clear up the PPI/DPI question and maybe put a stake through its heart:
https://jimhphoto.com/index.php/2020/12/21/dpi-a-concept-you-should-forget/
This isn't quite right:
"A photo from a camera has just pixels. That’s all – no physical size and therefore, no inches. It has pixel numbers, like 6000×4000, depending on its sensor size, but the image has no physical size. So it can’t have a DPI or PPI value. It just can’t."
Before demosaicking it's Bayer raster, thus one can say they are dots, like dots in CMYK raster. Also, one can argue that the image has the physical size, and that's the sensor image area size. This makes dpi metrics for a raw image valid, and ppi metrics - valid for demosaicked images.