To add to others, I too have combined the 2. To be more helpful to your situation, I mated O27 track and O switches. No issues.
BTW: the mating pins, depending on how many you need obviously, can get kinda pricey! I found them on-line for about 50 cents, the best price that I could find. Given the cost of shipping, and being the cheap son-of-a-gun that I am , I decided to make my own.
I took full 'O' pins, clamped them in vice, and used a sanding device to skinny down 1/2 of it to fit in O27 track. I learned a lesson doing so though: the tops of the tracks miss mating up, elevation wise, by the amount of the pin that was shaved off. There really was no way to correct the situation either, given the way that the pins were shaved.
Luckily it didn't seem to create any issues but if I ran trains real fast I could see them "go bump".
If I make them again myself I will try to find a way to keep the top of the pin untouched so that the rails mate perfectly.
I believe commercially bought mating pins are configured so that the tops of the rails will align, but since I don't own any of those pins I'm not 100% sure about that.
- walt