Is blood test reliable

Mr

Hi I was just wondering what is more accurate to find baby gender blood work at 12 weeks or ultrasound at 20 weekss???