For Mewtwo. I just know it’s ability isn’t predetermined (or doesn’t look like it is).
The Only way to get a HA Mewtwo (to my knowledge) Is from transferring from virtual console to bank, and trading it up to SwSh. You might be able to get Unnerve Mewtwo from events, but you can't get a HA Mewtwo from LGPE