In terms of rigor, probability theory >> web development
In terms of usefulness (especially for AI/ML), probability theory >> web development (even @yikesyikesyikes would probably agree)
If you specialize in AI/ML in college, you’ll likely have to take multiple courses on probability.