They share the same airflow meter but the rb25det runs 380cc injectors and the rb20det runs 260cc injectors.
I'm sure a similar question has come up before on www.skyline-owners-club.com and the general consensus is that it won't work without remapping the ecu to suit the 25 due to having different fuel, ignition, nvcs requirements.