The Law says, in the EU, i as a seller have to offer you compensation if i am out of stock.
IANAL but no, not compensation, a full refund of payment.
To say that a seller can take money for one item, then supply a completely different one is absurd. See horse/dog analogy.