Question: Which Is Better Primer Or Foundation?

What is more important primer or foundation?

.

Can you use primer instead of foundation?