Airlines do not intentionally dump lavatory waste inflight. I do not know of any commercial aircraft that gives pilots a control mechanism to do so.
On average once a year there’s a documented instance of ‘blue ice’ — airplane lavatory waste material that leaks from the aircraft. It’s named from the blue disinfectant often used in lavatory waste systems.