Density is just a side effect of building more homes (housing supply goes up in a given area -> density goes up). The effect of supply on price is, well, unambiguous.
This isn't barber shops and orange juice. Real estate is a far more structured market. Limited space. Price-pegged debt availability. Transport/infrastructure. Long term asset inflation trends. This creates a lot of ambiguity around the effect of supply on price... within realistic boundaries.
A simple supply and demand curve rarely models most urban real estate markets usefully.