Is a lumpsum better than a SIP?
For money you already hold, investing it at once has beaten spreading it over most historical periods, for a simple reason: markets rise more often than they fall, so money in earlier compounds longer. On the steady path modelled here, the lumpsum wins by construction.
Under a falling market it loses, and by a material amount, because every instalment after the first buys more units for the same rupees. Switch the path selector to Falling first and watch the answer reverse. That is the honest position: on average the lumpsum, in a bad window the stagger, and nobody knows which window they are in.
