Shoigu was counting on the Ukrainian forces folding and instead they fought back. Assuming the enemy will surrender is not a valid strategic plan.
They did almost take Kyiv. But their logistics failed them. I think they wouldn't have held on to the city for long. They did not have enough troops. They went in with only 200,000 troops.