The short answer
Somewhat, in a few ways. Dominican and Mexican food are both Spanish-speaking, both eat rice and beans, and both braise meat in sauces, so the two can look alike on a plate. But they are separate cuisines, with different starches, seasonings and levels of heat.
Where they overlap
Rice and beans are central to both. Dominican beans are usually stewed with a sofrito base, while Mexican frijoles are often cooked in a pot with onion and garlic.
Stewed meat is another shared habit. Guisado means “stewed” in Spanish, and stews such as pollo guisado have a counterpart in the many guisados served in Mexican kitchens and taquerías. Both cuisines also have fried dough and fried snacks.
Where they differ
Starch. Mexican cooking is built on corn: tortillas, masa for tamales, and corn in many everyday dishes. Dominican cooking leans on rice, plantains, yuca and other root vegetables. Corn shows up in sancocho and in majarete, a corn pudding, but it is not the base of the cooking.
Seasoning and heat. Mexican cooking uses many dried and fresh chiles, and heat is part of many dishes. Dominican seasoning relies on garlic, oregano, onion, sweet pepper and sour orange, and the food is generally milder.
Herbs. Culantro, a leafy herb with a stronger flavor than cilantro, is a defining ingredient in Dominican sofrito. It does not play that role in the everyday Mexican kitchen.
Why people compare them
The shared language, the shared rice and beans, and the many stews make the two cuisines easy to group together. The wider question of whether Latin cuisine is the same as Mexican cuisine has a similar answer: shared roots, but many distinct kitchens.
A quick way to tell them apart
If the plate centers on tortillas, salsa and chiles, it is more likely to be Mexican. If it centers on rice, beans, plantains and a stew with sofrito flavors, it is more likely to be Dominican. The everyday Dominican plates, such as la bandera and mangú, are covered in dominican comfort food, and that is a good place to see the difference in practice.