3rd pillar & 2nd pillar taxes when buying property

When you take out your retirement (3a or 2nd pillar) early for home purchase - how is the taxation on the withdrawal amount.

For example: Married Household income 200k Withdrawal of 50k 3rd pillar and 50k 2nd pillar Stadt Zurich

What would I expect to pay on these amount in tax. Is it taxed as income when withdrawing early or do you get some preferential treatment?