Diffusion vs. Autoregressive Language Models: A Text Embedding Perspective