I am experimenting with tilesets and noticed that replacing one tileset with another is not necessarily possible, despite them being "fairly similar". The primary differences between the tilesets are the amount and types of alternative tiles defined by the same terrain, other than that they are similar enough which is noticeable as the resulting map after swapping tileset had some wall tiles at the correct spots with the new textures.
Having said that, what are the relevant details to ensure the tilesets can be swapped without issues?