There can be many ways to solve a single problem, and many Ask Ubuntu questions accordingly receive multiple answers using different methods
In this case, which answer should I accept?
If both answers are correct, you might also consider how the respondent approached the problem, how efficient the solution is, and how they presented it. Of course, this might be overthinking, but if both answers satisfy the criteria you might exted the criteria. Among other things, leave a comment telling why you chose a particular answer. Personally , I'm here to learn and improve my skill set, hence I find it beneficial in receiving feedback.
TL;DR: if both cakes are good, consider each server's customer service