I thought this was a slam-dunk. I was going to link a simple article that says aluminum is clearly the better choice... Unfortunately, it's another one of those rather complicated issues. The most basic summation I can come up with is this:
"All-in-all, recycling a can uses 90% less energy than recycling a glass bottle, said Cranes. But to produce a tonne of virgin aluminium from bauxite can use 10x as much electricity as manufacturing the same amount of glass from sand." From here:
https://www.euronews.com/green/2019...ium-cans-which-are-better-for-the-environment
That sentence does not account for cost of shipping (a glass bottle is heavier than a can) or the volume of trash if it's not recycled (a bottle does not compact in the landfill) or probably a hundred other considerations.