https://en.wikipedia.org/wiki/List_of_countries_by_intention...
...when you sort by "Rate", Germany is at spot 161, Hungary at 164, and Sweden at 144 (and for comparison's sake and because it's kinda interesting/surprising: Russia and the US are also identical at spot 52 and 53). So even when taking knife killings into account the argument doesn't make sense, Germany is much closer (actually pretty much identical) to "poster child" Hungary than Sweden.
[0]https://worldpopulationreview.com/country-rankings/stabbing-...
One important difference between Germany and Sweden: youth unemployment is much much lower in Germany.
Similar developments as in Sweden can be seen in the Netherlands, due to the drug trade.
Background to the situation in Sweden: https://www.theguardian.com/world/2023/aug/27/sweden-seeks-t...
But generally the homicide rate in Sweden is very low (~ 1/6 of the US), Germany a bit lower, still.
https://en.wikipedia.org/wiki/List_of_countries_by_intention...