A demonstration would not have created the same level of fear, and the US had a limited number of bombs.
And how was the US supposed to know what was going on with the Japanese government between the bombings? They missed the deadline. An unconditional surrender was the only option on the table.
And if they wanted to…