I am not sure about question:
I will buy RAV4 with the D4 transmission? It is has same performance compare to VVTI engine?
You are not making a fair comparison. RAV4s are available with and without automatic transmission which I assume is wht you mean by D4. Typically automatics may be a little slower and less economical in magazine tests but in reality I doubt it would be noticed. Driving style will have a bigger influence, so get the transmission choice you prefer.
Various engines and identifiers were used in different markets, the RAV4L is a US version with more goodies than a basic version. RAV4J refers to the Japanese version (I think). On the 4.2 in the U.S. the early ones had a 2.0 litre engine and later ones a 2.4 litre engine. In the U.K. you could get basic models with a 1.8VVTI engine, but they were not popular, most people preferring the 2.0 or D4-D (diesel).
Now a comparison between 2.0 litre and D4-D engines would be more interesting.
Going back to 2WD vs 4WD, I think most markets other than North America and Canada only got 4WD versions. Both 4.1 and 4.2 have constant 4 wheel drive, the main difference being they had different centre differentials. This same Toyota drivetrain has been used in the new Daihatsu Terios, whereas the 4.3 RAV4 got a new drivetrain.
Can you explain your question a bit better please?