In Spain public health system don't do PCRs anymore (only private, which very few would). Without a PCR you don't have a valid proof of being infected.
This is my personal case and the case of many many Spanish people, as Omicron is sweeping the country.