EU can't direct and/or legislate that Hungary has to support Ukraine and not Russia
Not quite, but of course Hungary has to observe sanctions against Russia, so they could hardly do that and support them at the same time - and there is an EU common defence policy (except for Ireland, we have an opt-out).