Same money, two ways: all at once vs staggered monthly. See how the outcomes differ.
Illustrative at a constant return; real markets are volatile, which often favours staggering (SIP). Not advice.