I see what you're saying here: if the media prints lies from a government it's not the media lying, it's the government. If Israel says Hamas beheaded 40 babies and that's found out to be a lie, it wasn't the media lying about Hamas beheading 40 babies and so the media is entirely innocent of printing the lies fed to it by a government like Israel.
Here's the thing: if a government lies all the fucking time and the media keeps printing what the government claims anyway, then that makes them complicit in spreading the government's lies. We all know Israel's government spreads lies, so printing the lies it spread about Hamas is just doing the government's work for them. The media doesn't get to wash its hands of the things it prints just because it puts "Israel says" before the headline.