Stripping you to your underwear is not the same as making you naked, nor would it it a war crime though likely a crime against aesthetics. According to military experts having prisoners strip down is standard operating procedure to ensure that POWs are not concealing weapons. Subsequently these POWs were clothed in white prisoner garb. They’ll be (or have already been) interviewed after which some will likely be released. Names will be provided and unlike hostages held by Hamas, they’ll be visited twice a month by the Red Cross.
Using your “logic” they should be exterminated rather than jailed. That would be a war crime and would make you a war criminal. Your kind roll that way.