Baby cot

Should I buy baby cot or just buy a mattress ?