they can pass emissions if properly configured. they can perform exactly like the original ECU if tuned well, if a tiny bit better.
they don’t do OBD2 tests in my country though, only the pipe emissions test, so im not sure about that. saving a working original just for these tests is an option.