To answer the original question... YES, the 93 XJ motor will go into the '91 YJ with the 4.0. However, you will have to swap over most of the accessories (alternator, pulleys, brackets, PS pump, fan pulley, etc) because they are different on the XJ 4.0's. I think you also may need to swap the exhaust manifold, but I'm not certain...
There were never any factory RENIX YJ's, because in 1990 and prior years, the inline six models were carb'ed 4.2's. XJ's came with the RENIX 4.0 starting in '87 and going through '90. Some LATE '90 models might have a 4.0HO (they're probably mfg'ed in '90 but are a '91 model year), the general rule is '91 and up XJ's are 4.0HO.
One thing to watch out for is manual/auto differences... The TPS may be different on the XJ if it's an auto and the YJ is a manual. Also, the XJ may not have a pilot bearing if it's an auto, so don't forget to put that in. Unless I'm forgetting something, it should be a fairly straightforward swap.