More people died as a direct & indirect result of the Battle of Okinawa, than died from 2 A-bombs.
Multiply the American and Japanese military casualties and the Japanese civilian casualties (many of which were suicides) by the ratio of Okinawa's population to the Home Islands and you get some idea of the bloodbath the invasion would have been.
The bombs saved a lot of lives on both sides.