Heat the cooking oil in the Instant Pot on the "normal" saute setting.
Add the pork (in 2-3 batches) and brown on all sides. Be sure not to crowd the pork or it won't properly brown.
Place all the browned pork in the Instant Pot and add the sugar. Cook until the pork turns a golden brown color (about 5 minutes). Stir constantly to keep sugar from burning.
Add the garlic and saute for 1 minute.
Add the remaining ingredients (except sliced onions) and set the Instant Pot to pressure cook on high for 15 minutes. Let the steam release naturally for 10 minutes. Use the quick release to release any remaining pressure.
Turn the Instant Pot to saute and add the onions. Simmer until sauce has reduced to a thickened glaze, about 5-10 minutes.
Remove from heat, garnish with green onions and fried shallots, and serve with rice.
Substitute chicken broth for pork broth if necessary.
Cook the pork in batches to make sure it browns instead of steams.
Make sure to stir periodically after adding the sugar to ensure it doesn't burn.
After the pressure has released, you want to continue cooking it until all the liquid has been absorbed. The pork should be sticky and caramelized.