In a 6-quart Instant Pot, add all ingredients except for the rice vinegar or lime. Make sure the whole spices, ginger, and garlic are tucked into the liquid as best you can.
Secure the lid and pressure cook on high for 40 minutes. Let it naturally release for 15 minutes, then release the pressure manually.
Transfer the meat to a large cutting board. Fish out the whole spices and ginger and discard. Stir in the vinegar or lime.
Use two forks to shred up the beef. If serving right away, transfer the beef back into the pot. If storing (it tastes way better the next day!), transfer to a large glass or metal container, then pour the liquid over top.
Once chilled, if there is a lot of solidified fat on the surface, feel free to scrape as much of it off as you’d like. Different beef cuts will contain more or less fat.
To serve, scoop out and warm up the beef gently in a pot with a lid. Serve over warm rice with crunchy veg, avocado (if using), sriracha (if using), and lots of herbs. Squeeze a wedge of lime all over.