SPST Wiring with 24v Transformer wProblem

So if either one will work, should I get the over-kill one you found first? It is only a dollar more. And I will get AC - I didn’t realize I was getting a DC one earlier. Or does it truly not matter if I get the 40 vs 50 VA?