It may or may not work. It will all boil down to the personality of each fish especially as they mature. Pearls is the best choice for trying this IMO
. As for loaches I would suggest staying with something smaller such as Kuhli's in a group of 6. You could do 3 yo-yo loaches but IMO
they would get cramped as they grow. My Yo-yo loaches are very active.