It shouldn't be discounted at all, given that the report by the US intellligence community states that all its agencies find it to be a plausible hypothesis.
I think 5 agencies found the Pangolin explanation to be the most plausible, 2 found the lab leak the most plausible (including the FBI) and the rest (including the CIA) couldn't decide.
Some of the agencies found that there was evidence of laboratory adaptation (taking a virus found in nature and playing with it to provoke the desired mutations) of the virus, which is distinct from genetically engineering a virus (creating it from scratch in a lab) which all agencies agreed did not happen.
The US intelligence community concluded there were concerns about adherence to the correct safety practices at the Wuhan Institute of Virology in the lead up to the pandemic.
The Wuhan Institute of Virology took down the database of viruses it had been working with in, ahem, autumn 2019.
It is probably more accurate to say that the lab leak is not publicly accepted by a majority of scientists.