Agreed. Nation building is a poor idea, especially in a Muslim tribal dump.
We de-Nazified the Nazis, and nation-built in Germany. We de-militarized the Japanese government, and nation-built in Japan. We were unwilling to de-Islamize in Afghanistan and Iraq, and the results are plain.
Nation building in the country of a former adversary in war is a poor idea IF you are not willing and able to take appropriate drastic action to suppress and eliminate the ideology that you were battling. We weren’t, aren’t, and likely will not be for the foreseeable future.
Beyond that, see tagline.