It is domestic politics for Erdogan, he wants to be re-elected and this is his way to win some political points.
The Hungarians must say yes and they most likely will if they want to have a functional air force. The Hungarian air force is flying JAS with a no, they would be forced to buy other fighter planes
They are both trying to play on the both sides of the road. It usually doesn't work well when governments have tried to walk down that path
Why MUST the Hungarians say yes ?
Erdogan is PM of Turkey and Orban is PM of Hungary ,they are not the PM of Ukraine .
Their mission is to serve the interests of Turkey /Hungary, not the interests of Ukraine .
Or the interests of the 535 people in Capitol Hill .
To play on the both sides of the road is the only realistic policy for neutral countries .
US was playing on the both sides of the road by selling war materials to China and Japan . And the rape of Nanking did not stop this .
After the Russian invasion in 2014 most NATO countries continued to sell war materials to Russia,til last year . Thus NATO is the last person on earth to lecture Hungary and Turkey .