Monolithic vs Microservices Architecture

When is monolithic architecture better than microservices, and vice versa? What are the trade-offs between the two? What makes it worth converting from one to the other? How does AI adoption change these considerations?