I would take the 2 year HPSP for a 3 year payback if specializing was the goal.
After the 3 year commitment is up, you transition to a reserve unit for the 40k/year HPLRP, while cashing in your GI bill at a civilian endo program.
In return for a 5 year military commitment (3 active, 2...