The Lancet is a peer reviewed medical journal not an IDF propaganda outlet. If israel believes the true count is lower they should let journalists and UN workers in to confirm it.
40K is the amount of people confirmed killed. Counting has also stalled a lot after israel targeted health workers responsible for the counting.