You had the 91 wouldn't start at first?
Um you can use just about any 91-99 xj 4.0 most others grand Cherokee, wranglers up 98. It's a big pool to choose from, the vin is just what identified the 4.0 that year, some manufactures motors it identifies the plant any type of engine - carbureted- tbi- injected. For the 90s 4.0 it's a just about all the same motor except for a few small change.
I have a 95 motor I picked up to rebuild for a 91-92 xj. Stuff like valve cover and sensors change but just treat it as a bare long block and swap all your accessories and other items over.
Other big change is how the oil filter mounts between the years, really doesn't matter. Usually when I swap a newer motor I just make sure to buy for that year motor or swap the housing if possible .
If you find a candidate I'm sure some one here can tell you that year and keeps quirks for transplant
Sent from my iPhone using Tapatalk