Strength is multidimensional. Power projection and defense entail different capabilities. It's not like a "strong military" is something you order online, it takes an economic and demographic base which Ukraine couldn't support. Maybe a better argument is that they shouldn't have denuclearized -- for defense you don't need a military, you just need MAD.