You missed a very obvious parallel to Baratie Arc, even though Oda ends the arc by having Zeff serve his enemies, pirates who could have just destroyed his restaurant like Don Krieg the next day. Oda intentionally avoided giving Sanji drawn out fights even though there was plenty of opportunities. It was the time to make Sanji's other characteristics shine, to remind readers of what Luffy initially was drawn to Sanji for. Wano is the war arc, Sanji was brought to Wano to fight, Sanji can fight with every other Strawhat there because the BMP are returning as enemies anyway.
The entire subplot of the Germa 66 was that they saw Sanji as nothing but tool for fighting. Judge wanted to raise super soldiers for his militaristic kingdom, even his clones are disposable and Judge is all too happy to sacrifice their lives. Sanji's value was intrinsically tied to how useful he was for fighting and everything that held him back from that purpose whether his compassion or desire to cook for some rats was a seen as a weakness. Sanji was their failure. Sanji beats up Yonji and he's STILL a failure to Judge. Why? Because he retained all those other qualities. In Judge's eyes, Sanji cannot make up for the emotions and mercy he would show to his enemies, dooming the Germa 66 in the end.
Now let's go back to Baratie Arc, Sanji's very own character introduction. Sanji did far far worse than WCI, he accomplished almost zero fighting feats. Sanji didn't save Baratie, Luffy saved the restaurant. Sanji didn't defeated Pearl, Gin defeated Pearl. Sanji fought and lost to Gin, a man who only had energy to fight because he fed him. In Judge's eyes, Sanji is a failure. He is responsible for Baratie's potential end. There is no way he is recruiting a jobber who couldn't defeat a single character of note in that arc. Judge and his children value strength, not cooking skills, and a chef like Cossette can casually get beaten up with no consequences as she is mere lowly servant.
So why did Luffy recruit Sanji? Because he liked his marvelous cooking skills, the compassion he'd shown to an pleading starving enemy like Gin, the way he stood against scum looking for trouble like Fullbody, his powerful dream to explore the world and find the All Blue. If Luffy was looking for military might like Judge, he would taken a hard pass on Sanji based on what he saw. Sanji only later in the story GREW in the monster trio role. Sanji is indeed strong, it's not as if he took a hard L to any enemy in WCI, but there is more to Sanji than fighting and Oda used this arc as his showcase. WCI was a call back to Sanji's origins, later in Wano he can show his later adapted role as a valuable fighter by defeating a top subordinate like Queen as Zoro takes on King and Luffy against Kaido.
Do you get it now? Everything Judge hates about Sanji is what Luffy recruited him for. If Sanji defeats an enemy even Judge couldn't handle like Oven and saves his life from the brink, that's proving him right. Judge would no longer think of Sanji as a complete failure, the readers would have to live with that scumbag's approval. He might have even invited Sanji back to join him and envied Luffy for taking him away. Instead, everything he has to say and think about Sanji has to be completely ignored and dismissed just as Luffy did. Judge needs to be completely wrong here, he is a twisted human being who genetically modified his own children to be his loyal tools.
In WCI, we see Sanji's cooking skills are out of this world, he shows compassion to starving enemies like Big Mom, chivalry to a monster girl like Pudding trying to kill him, goes back to save the evil Germa because it was in his power to stop blood from getting spilled. Sanji also had conflicting existential dualities in Baratie, like when he couldn't understand why Zoro wanted to pick a fight with an overwhelming opponent like Mihawk. We saw a bit of that when he shows his human weakness and beats up his own captain, because Sanji for a moment was afraid of the overwhelming power of the Big Mom Pirates. The Strawhats are far from completely fearless, they have to muster up a lot courage and belief to do what they do. Oda pretty much gave us every part of Sanji, some of it which we hadn't seen in a very long time, including a few minor fighting feats. In my opinion, Oda handled Sanji in WCI quite well.