The treaty makes it sound as if it's the other way around
Are we still talking about Hungary? If yes there's a foreign tax credit up to the Hungarian tax payable on the creditable income (at a maximum of 90% of income tax paid abroad).
https://taxsummaries.pwc.com/hungary/corporate/tax-credits-and-incentives