"No way"? Sounds like a challenge. And not a tough one.
We assume Stanford ends up 28–1 for regular season, highly likely, then wins the conference tournament.
Maryland, per your assumption, goes 15–1 in the ACC so is also 28–1 for regular season, and wins the ACC tournament.
Who does MD lose to? Their best option is Duke, because everyone else is ranked lower.
Which means Stanford has a single loss to a one see, and MD has a loss to a team that has at least three losses (two to date, plus one to Duke). The Duke may be a three seed or a weak two seed. (Obviously, Duke can do better, but not and have this conversation about MD with a one loss season)
Maryland's best win will be over Duke, while Stanford's will be TN. Maybe a push, but the Stanford win may carry more weight. When it comes to losses, Stanford will have one to a 1 seed, while Maryland has a loss to a weak 2 or strong 3. Stanford gets the edge, without even considering that the committee likes Tar more than Brenda.
(I've argued that MD may well be a 1 seed, but my scenario includes running the table, not losing to Duke or someone else.)