Hold on..... You'll lose ur device! Buddy even though they both have same 2 GB Ram and16GB ROM, there are many other constraints to be overlooked before installing OS,.... DON'T INSTALL ROMS OF OTHER DEVICES on any phone. They'll get bricked .....search for Osprey threads and follow their instructions to get Osprey ROM installed on Moto g3.
Yes bro you can flash lineage os for your device. I have same device and I'm using resurrection remix 7.1.2. If you want any help in how to flash twrp & rom you can comment down.
I dont have yuphoria right now but hard bricked it...and the cost for reviving it around 4k according to service centre...so i bought RN4 2mnths ago...but i always believe on some devs who can keep alive yu phones...pawan is one of them...grat work buddy.keep it up.