Machine Learning challenges earlier concepts about formation of long and short duration Gamma-Ray Bursts