The argument - which I’m not even arguing myself here, nor do you have to agree with it - is that the atomic bombs forced a Japanese surrender, which prevented a much more deadly and protracted conflict.
As horrendous as the atomic bombings were, at least they were done for strategic military...