The deaths of two Iranian generals is not the same as the death of Osama bin Laden or al Baghdadi.
Trump has stated General Soleimani was a terrorist leader. He was not leading terrorists and hiding in a cave. His status as a general of a sovereign country is far different than that of the terrorist leaders hiding in caves. Trump's killing of Iranian generals was a very hostile act and a complete departure from USA policy.